Browse Source

花束区优化

shish 11 tháng trước cách đây
mục cha
commit
10dc834566
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 1
      hdApp/src/admin/goods/add.vue
  2. 2 1
      hdApp/src/admin/goods/detail.vue

+ 1 - 1
hdApp/src/admin/goods/add.vue

@@ -239,7 +239,7 @@ export default {
     },
     init() {
       this.loading = true;
-      getClass({flower:1}).then(res => {
+      getClass().then(res => {
         if(res.code && res.code == 1){
           this.categoryData = res.data
         }

+ 2 - 1
hdApp/src/admin/goods/detail.vue

@@ -217,6 +217,7 @@ export default {
     },
   },
   methods: {
+    init(){},
     changeKind(){
       this.pageTo({url:'/admin/goods/selectKind?style=2&flower='+this.form.flower})
     },
@@ -358,7 +359,7 @@ export default {
           this.form.cover = this.form.shopImg[0];
           this.form.shortCover = this.form.shopImg[0];
         }
-        getClass({flower:res.data.flower}).then(res => {
+        getClass().then(res => {
           if(res.code && res.code == 1){
             this.categoryData = res.data
             if (!this.$util.isEmpty(this.categoryData)) {