活动管理
This commit is contained in:
@@ -602,6 +602,7 @@ export default {
|
||||
batchNumberForm: {
|
||||
batchNumber: 0,
|
||||
},
|
||||
routequery:''
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -612,6 +613,20 @@ export default {
|
||||
if (this.$route.query.goods_id) {
|
||||
this.tbProductGetDetail();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// 监听路由对象中的参数变化
|
||||
$route(to, from) {
|
||||
console.log(to.query.goods_id)
|
||||
if (to.query.goods_id) {
|
||||
if (this.routequery == to.query.goods_id) {
|
||||
return false;
|
||||
} else {
|
||||
this.tbProductGetDetail();
|
||||
}
|
||||
this.routequery = to.query.goods_id
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
uploadImgSucess(res, item) {
|
||||
|
||||
Reference in New Issue
Block a user