Эх сурвалжийг харах

修复产品详情页isUpdate状态设置重复的问题

yusheng 10 сар өмнө
parent
commit
9f7e5438b8

+ 2 - 1
src/views/material/product/detail.vue

@@ -799,7 +799,6 @@
         'categoryLevelId',
         this.$route.query.categoryLevelId
       );
-
       this.$set(this.form, 'isUpdate', this.$route.query.isUpdate);
 
       this.isUpdate = this.$route.query.isUpdate;
@@ -985,6 +984,8 @@
       },
       async _getDetails() {
         const data = await getDetails(this.$route.query.id);
+        this.isUpdate = this.$route.query.isUpdate;
+        this.$set(this.form, 'isUpdate', this.$route.query.isUpdate);
 
         const info = deepClone(data);
         info.category.produceType = info.category.produceType[0];