|
@@ -208,26 +208,28 @@ export default defineComponent({
|
|
|
handleClose();
|
|
|
return;
|
|
|
}
|
|
|
- // 判断是否有wav文件,如果没有则生成保存
|
|
|
- if (!props.item.filePath) {
|
|
|
- const url = await productWav(false);
|
|
|
- props.item.filePath = url;
|
|
|
- }
|
|
|
- if (!props.item.filePath) {
|
|
|
- message.error("没有生成wav文件");
|
|
|
- handleClose();
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
+ // if (!props.item.filePath) {
|
|
|
+ // message.error("没有生成wav文件");
|
|
|
+ // handleClose();
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
model.saveLoading = true;
|
|
|
handleAutoProduct();
|
|
|
});
|
|
|
};
|
|
|
const handleSubmit = async () => {
|
|
|
- await api_musicSheetCreationUpdate({
|
|
|
- id: props.item.id,
|
|
|
- subjectId: froms.subjectId,
|
|
|
- filePath: props.item.filePath,
|
|
|
- });
|
|
|
+ // 判断是否有wav文件,如果没有则生成保存
|
|
|
+ if (!props.item.filePath) {
|
|
|
+ const url = await productWav(false);
|
|
|
+ props.item.filePath = url;
|
|
|
+ await api_musicSheetCreationUpdate({
|
|
|
+ id: props.item.id,
|
|
|
+ subjectId: froms.subjectId,
|
|
|
+ filePath: props.item.filePath,
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
await wav2mp3();
|
|
|
model.saveProgress = 70;
|
|
|
if (!props.show) return;
|