From ad37b47ede2f3cff5a1502b1dd9f4fc1ed6881a6 Mon Sep 17 00:00:00 2001 From: lyt <1754415696@qq.com> Date: Tue, 20 Dec 2022 15:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=95=86=E5=93=81=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bxg/shop/goods/form.vue | 8 ++++++++ 1 file changed, 8 insertions(+) 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();