소스 검색

Update index.tsx

lex 10 달 전
부모
커밋
feb4779ed1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/teacher/music/upload/index.tsx

+ 2 - 2
src/teacher/music/upload/index.tsx

@@ -356,8 +356,8 @@ export default defineComponent({
         { api: 'chooseFile', content: { type: 'mp3', bucket: 'cloud-coach' } },
         evt => {
           // @ts-ignore
-          this.backgroundMp3s[index].url =
-            evt?.fileUrl || this.backgroundMp3s[index].url || ''
+          const url = evt?.fileUrl || this.backgroundMp3s[index].url || ''
+          this.backgroundMp3s[index].url = url
           this.backgroundMp3s[index].loading = false
         }
       )