Browse Source

修复问题

lex 1 năm trước cách đây
mục cha
commit
c774ed53f8
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  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;