diff --git a/src/views/bxg/shop/goods/form.vue b/src/views/bxg/shop/goods/form.vue index f5e364d..48eb2a5 100644 --- a/src/views/bxg/shop/goods/form.vue +++ b/src/views/bxg/shop/goods/form.vue @@ -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();