From 33be84ff2bcc41ae067f4f5b2ef66aba06ee39a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BE=81?= Date: Wed, 11 May 2022 19:36:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=9B=91=E5=90=AC?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/list/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/goods/list/index.vue b/pages/goods/list/index.vue index cc56932..2a65208 100644 --- a/pages/goods/list/index.vue +++ b/pages/goods/list/index.vue @@ -177,10 +177,11 @@ export default { }, }, watch: { - //监听路由 - //监听路由的categoryId属性的数据变化 - "$route.query.keyword": function () { - this.init(); + $route: { + handler() { + this.init(); + }, + deep: true, }, }, };