From cc8c6396e474bcb92220f0bb03f5c50b1e337de0 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Sat, 7 Sep 2024 16:51:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[update]=20=E8=BF=9B=E5=85=A5=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=9B=B4=E6=8E=A5=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=A1=B5=E7=9A=84=E5=8A=9F=E8=83=BD=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 7aa7692..4a76e01 100644 --- a/src/main.js +++ b/src/main.js @@ -87,8 +87,8 @@ new Vue({ // }) console.log('store.dispatch(\'DingLogin\')') store.dispatch('DingLogin').then(() => { - console.log('DingLogin后 跳转到搜索页') - this.$router.push({ path: '/search/generalSearch' }) + // console.log('DingLogin后 跳转到搜索页') 错误的 导致钉钉登录成功后跳转的页面有问题 + // this.$router.push({ path: '/search/generalSearch' }) }).catch((e) => { Toast(e.message) }) From defa4769a43977a91c651bf640c709d7c0d94e2e Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Sat, 7 Sep 2024 16:53:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[update]=20home=E9=A1=B5=E9=9D=A2=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router/index.js b/src/router/index.js index ef64e84..be7966f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -38,6 +38,7 @@ const routes = [ path: '/', name: 'home', component: () => import('@/views/Home'), + redirect: '/search/generalSearch', meta: { // 是否显示头部导航 hasNavBar: true,