新建商品清空表单

This commit is contained in:
lyt
2022-12-20 15:40:03 +08:00
committed by Loki
parent 56730da156
commit ad37b47ede
+8
View File
@@ -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();