Ver código fonte

接口店铺

duanqianwen 1 ano atrás
pai
commit
34ce35c893
1 arquivos alterados com 12 adições e 6 exclusões
  1. 12 6
      src/pageMerchant/storeModule/shopManage.vue

+ 12 - 6
src/pageMerchant/storeModule/shopManage.vue

@@ -390,15 +390,20 @@
                   })
                 })
                 this.tabbar = res.data
-                this.rightTabbar = result.data.map(obj => {
-                  return {
-                    ...obj,
-                    checked: false
-                  }
-                })
+
+                if(this.delete_type==1){
+                  this.rightTabbar = result.data.map(obj => {
+                    return {
+                      ...obj,
+                      checked: false
+                    }
+                  })
+                }
+
 
               } else {
                 this.tabbar = []
+                 this.rightTabbar = []
               }
 
 
@@ -406,6 +411,7 @@
             })
           } else {
             this.tabbar = []
+            this.rightTabbar = []
           }
         })