YY 2 éve
szülő
commit
1973e98f62

+ 1 - 1
src/views/platmanag/goods/index.vue

@@ -306,7 +306,7 @@ export default {
     },
     // 库存管理
     toSpec({ data }) {
-      this.$router.push({ path: `/platmanag/spec/${data._id}`, query: { id: data.id } });
+      this.$router.push({ path: `/platmanag/spec/${data._id}` });
     },
   },
   computed: {

+ 1 - 7
src/views/platmanag/goods/spec.vue

@@ -142,10 +142,9 @@ export default {
     },
     async toData(row) {
       let data = this.data;
-      let res = await this.goodsFetch(this.id);
+      let res = await this.goodsFetch(this.goods);
       if (this.$checkRes(res)) {
         data.push(res.data);
-        console.log(data);
       }
       this.search();
     },
@@ -222,11 +221,6 @@ export default {
   metaInfo() {
     return { title: this.$route.meta.title };
   },
-  computed: {
-    id() {
-      return this.$route.query.id;
-    },
-  },
 };
 </script>
 

+ 1 - 2
src/views/selfShop/goods/index.vue

@@ -244,7 +244,6 @@ export default {
         let res;
         if (data._id) res = await this.update(data);
         if (this.$checkRes(res)) {
-          console.log(res.data);
           this.$message({ type: `success`, message: `下架成功` });
         }
         this.search();
@@ -252,7 +251,7 @@ export default {
     },
     // 库存管理
     toSpec({ data }) {
-      this.$router.push({ path: `/selfShop/spec/${data._id}`, query: { id: data.id } });
+      this.$router.push({ path: `/selfShop/spec/${data._id}` });
     },
   },
   computed: {

+ 1 - 7
src/views/selfShop/goods/spec.vue

@@ -143,10 +143,9 @@ export default {
     },
     async toData(row) {
       let data = this.data;
-      let res = await this.goodsFetch(this.id);
+      let res = await this.goodsFetch(this.goods);
       if (this.$checkRes(res)) {
         data.push(res.data);
-        console.log(data);
       }
       this.search();
     },
@@ -223,11 +222,6 @@ export default {
   metaInfo() {
     return { title: this.$route.meta.title };
   },
-  computed: {
-    id() {
-      return this.$route.query.id;
-    },
-  },
 };
 </script>