Przeglądaj źródła

播客专辑 修改交互

DESKTOP-O04BTUJ\muzen 2 lat temu
rodzic
commit
c432b56d89
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/views/music/blog/detail.vue

+ 2 - 2
src/views/music/blog/detail.vue

@@ -316,7 +316,7 @@ export default {
       } else {
         this.ids.map(i => {
           this.form.adminPodCastProgramDetailResp.map((j, index) => {
-            if(j.id === i) {
+            if (j.id === i) {
               this.form.adminPodCastProgramDetailResp.splice(index, 1)
               this.$message.success('解除成功!')
             }
@@ -334,11 +334,11 @@ export default {
           this.form.adminPodCastProgramDetailResp.map(i => {
             this.form.podcastProgramIds.push(i.id)
           })
-          delete this.form.adminPodCastProgramDetailResp
           submit(this.form).then(res => {
             if (res.code === 0) {
               this.$message.success(`${title}`)
               if (this.form.id) {
+                delete this.form.adminPodCastProgramDetailResp
                 this.getDetail()
               } else {
                 this.cancel()