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