瀏覽代碼

修复问题

lex 1 年之前
父節點
當前提交
c774ed53f8
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/pc/component/upload-to-resources/index.tsx

+ 6 - 5
src/pc/component/upload-to-resources/index.tsx

@@ -224,13 +224,14 @@ export default defineComponent({
       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 api_musicSheetCreationUpdate({
+        id: props.item.id,
+        subjectId: froms.subjectId,
+        filePath: props.item.filePath,
+      });
+
       await wav2mp3();
       model.saveProgress = 70;
       if (!props.show) return;