添加文件预览信息展示,统一按钮操作逻辑
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user