添加文件预览信息展示,统一按钮操作逻辑

This commit is contained in:
WUSIJIAN
2026-02-04 11:13:00 +08:00
parent 61ba18b03f
commit 1458fb7d7e
3 changed files with 283 additions and 123 deletions

View File

@@ -30,11 +30,7 @@
</el-button>
<el-button type="success" @click="handleAdd">
<el-icon><ele-Plus /></el-icon>
上传音频
</el-button>
<el-button type="warning" @click="handleTts">
<el-icon><ele-Microphone /></el-icon>
文本转语音
添加音频
</el-button>
</el-form-item>
</el-form>
@@ -315,12 +311,8 @@ const handleReset = () => {
const ttsDialogRef = ref<InstanceType<typeof TtsDialog>>();
// 打开添加音频弹窗
const handleAdd = () => {
ElMessage.info('上传音频功能开发中...');
};
// 打开文本转语音弹窗
const handleTts = () => {
ttsDialogRef.value?.openDialog();
};