1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29:31 +08:00

update: 修复首次运行跳转页面非首页问题

This commit is contained in:
小莫唐尼
2024-05-21 10:00:07 +08:00
parent 90ef890766
commit f6069cad95
7 changed files with 59 additions and 87 deletions
+2 -7
View File
@@ -12,19 +12,14 @@
fnCheckShowStarted() {
if (!getApp().globalData.start.use) {
uni.switchTab({
// url: '/pages/tabbar/home/home'
url: '/pages/tabbar/moments/moments'
url: '/pages/tabbar/home/home'
});
return;
}
if (uni.getStorageSync('APP_HAS_STARTED')) {
uni.switchTab({
// url: '/pages/tabbar/home/home'
url: '/pages/tabbar/moments/moments'
url: '/pages/tabbar/home/home'
});
// uni.navigateTo({
// url: '/pagesA/friend-links/friend-links'
// });
} else {
uni.redirectTo({
url: '/pagesA/start/start'