From 36e400027e92e5612f5343982614cefa392fc56f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 27 Dec 2022 14:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpermission=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF(I5RYY7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/permission.js b/permission.js index aef5a45..44a3a7c 100644 --- a/permission.js +++ b/permission.js @@ -20,7 +20,7 @@ list.forEach(item => { uni.addInterceptor(item, { invoke(to) { if (getToken()) { - if (to.path === loginPage) { + if (to.url === loginPage) { uni.reLaunch({ url: "/" }) } return true