浏览代码

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
         }
       )