mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 10:00:13 +09:00
35 lines
647 B
Vue
35 lines
647 B
Vue
<template>
|
|
<view class="app-page"></view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
onLoad() {
|
|
this.fnCheckShowStarted();
|
|
},
|
|
methods: {
|
|
// 检查是否需要跳转到启动页
|
|
fnCheckShowStarted() {
|
|
if (!getApp().globalData.start.use) {
|
|
uni.switchTab({
|
|
url: '/pages/tabbar/home/home'
|
|
});
|
|
return;
|
|
}
|
|
if (uni.getStorageSync('APP_HAS_STARTED')) {
|
|
uni.switchTab({
|
|
url: '/pages/tabbar/home/home'
|
|
});
|
|
|
|
// uni.navigateTo({
|
|
// url:'/pagesA/test-page/test-page'
|
|
// })
|
|
} else {
|
|
uni.redirectTo({
|
|
url: '/pagesA/start/start'
|
|
});
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script> |