uni-halo/pages/index/index.vue
小莫唐尼 9d3ebac076 新增:更新halo.config.js 配置参数;
更新:更新项目UI框架;
修复:修复友链列表丢失白色背景色BUG;
2022-12-09 18:10:47 +08:00

32 lines
538 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'
});
} else {
uni.redirectTo({
url: '/pagesA/start/start'
});
}
}
}
};
</script>