新建商品清空表单
This commit is contained in:
@@ -670,6 +670,14 @@ export default {
|
|||||||
// 开启深度监听
|
// 开启深度监听
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
|
$route(to,form){
|
||||||
|
console.log(to.fullPath)
|
||||||
|
if(to.fullPath=='/bxg/shop/goodsAdd'){
|
||||||
|
this.resetForm()
|
||||||
|
}else{
|
||||||
|
this.getInfo();
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getInfo();
|
this.getInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user