|
|
@@ -118,7 +118,8 @@ async function handleLogin() {
|
|
118
|
118
|
// 如果有重定向地址,跳转到指定页面
|
|
119
|
119
|
if (redirectUrl.value.startsWith('/pages/')) {
|
|
120
|
120
|
// 检查是否为tabbar页面
|
|
121
|
|
- if (redirectUrl.value === '/pages/index/index' || redirectUrl.value === '/pages/me/me') {
|
|
|
121
|
+ const tabbarPages = ['/pages/schedule/view/index', '/pages/report/index', '/pages/radar/index', '/pages/archive/index', '/pages/knowledge/index']
|
|
|
122
|
+ if (tabbarPages.includes(redirectUrl.value)) {
|
|
122
|
123
|
uni.switchTab({
|
|
123
|
124
|
url: redirectUrl.value,
|
|
124
|
125
|
})
|
|
|
@@ -138,7 +139,7 @@ async function handleLogin() {
|
|
138
|
139
|
else {
|
|
139
|
140
|
// 没有重定向地址,跳转到首页
|
|
140
|
141
|
uni.switchTab({
|
|
141
|
|
- url: '/pages/index/index',
|
|
|
142
|
+ url: '/pages/schedule/view/index',
|
|
142
|
143
|
})
|
|
143
|
144
|
}
|
|
144
|
145
|
}, 1500)
|