lex il y a 2 ans
Parent
commit
a1f3a48c24
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/views/user-info/music-operation/index.tsx

+ 4 - 1
src/views/user-info/music-operation/index.tsx

@@ -117,7 +117,10 @@ export default defineComponent({
         this.form.audioType = res.data.audioType
         this.form.musicSubject = Number(res.data.musicSubject)
 
-        const musicTag = res.data.musicTag.split(',')
+        let musicTag = res.data.musicTag.split(',')
+        musicTag = musicTag.filter((el: any) => {
+          return el != ''
+        })
         this.form.tags = musicTag.map((item: any) => {
           return Number(item)
         })