feat: 优化
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user