소스 검색

先保存

lex 1 년 전
부모
커밋
70df918ff0
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/pc/home/index.tsx

+ 4 - 0
src/pc/home/index.tsx

@@ -2047,6 +2047,10 @@ export default defineComponent({
       // 由于没有保存wav文件这里需要在保存一次
       // await handleSaveMusic();
       const query = getQuery();
+      // 判断是否有id,如果没有则先保存
+      if (!query.id) {
+        await handleSaveMusic(true);
+      }
       const res = await api_musicSheetCreationDetail(query.id);
       if (res.data) {
         if (res.data.uploadStatus !== "YES") {