1
0
鏡像自 https://github.com/ialley-workshop-open/uni-halo.git 已同步 2026-06-12 21:29:31 +08:00
Files
uni-halo/pages/index/index.vue
T
2022-12-06 15:08:29 +08:00

26 行
405 B
Vue

<template>
<view class="app-page"></view>
</template>
<script>
export default {
onLoad() {
this.fnCheckHadStarted();
},
methods: {
// 检查是否已经启动过
fnCheckHadStarted() {
if (uni.getStorageSync('APP_HAS_STARTED')) {
uni.switchTab({
url: '/pages/tabbar/home/home'
});
} else {
uni.redirectTo({
url: '/pagesA/start/start'
});
}
}
}
};
</script>