From abd55e907c542fe367ed24e12d07ba39cb86871d Mon Sep 17 00:00:00 2001 From: santaner Date: Fri, 22 Dec 2023 10:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E5=A5=BD=E5=8F=8B-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index cb33a75..5d39d88 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -369,9 +369,16 @@ methods: { authTo(url){ if(this.isLogin){ - uni.navigateTo({ - url - }) + if(url == '/pages/index/index'){ + uni.setStorageSync('isIntegral',true) + uni.switchTab({ + url: '/pages/index/index' + }); + }else{ + uni.navigateTo({ + url + }) + } }else{ this.openAuto() }