This commit is contained in:
2026-03-04 03:49:03 +08:00
parent b5ec2bf3d0
commit 8dc3501990
3 changed files with 186 additions and 31 deletions

View File

@@ -323,7 +323,7 @@ const formData = ref({
produceCount: Number(localStorage.getItem('mix-produce-count')) || 3,
totalDuration: 15,
clipDuration: 5,
cropMode: 'center'
cropMode: localStorage.getItem('mix-crop-mode') || 'center'
})
const uiState = ref({
@@ -377,6 +377,11 @@ const saveProduceCount = () => {
localStorage.setItem('mix-produce-count', formData.value.produceCount.toString())
}
// 监听裁剪模式变化,保存到 localStorage
watch(() => formData.value.cropMode, (newVal) => {
localStorage.setItem('mix-crop-mode', newVal)
})
const getFileById = (fileId) => {
let file = dataState.value.groupFiles.find(f => f.id === fileId)
if (file) return file