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