feat: 优化

This commit is contained in:
2026-02-24 23:58:17 +08:00
parent caa69d7353
commit cfaf8cab49
8 changed files with 754 additions and 609 deletions

View File

@@ -205,7 +205,7 @@
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { ref, onMounted } from 'vue'
import { CloudUploadOutlined, CrownFilled } from '@ant-design/icons-vue'
import { useVoiceCopyStore } from '@/stores/voiceCopy'
import { useUserStore } from '@/stores/user'
@@ -242,7 +242,6 @@ const {
canGenerate,
maxTextLength,
textareaPlaceholder,
audioDurationSec,
// Pipeline 状态(单一状态源)
pipelineState,
@@ -284,9 +283,6 @@ const handleFileSelectWrapper = (e: Event) => {
controller.handleFileSelect(e)
}
// ==================== 生命周期 ====================
import { onMounted } from 'vue'
onMounted(async () => {
await voiceStore.refresh()
})