25 lines
553 B
Vue
25 lines
553 B
Vue
|
|
<template>
|
||
|
|
<view class="wh-full">
|
||
|
|
<BasicLoading :isShow="isShow" bgColor="#fff" isShowTitle textColor="#000" title="启动中..." :type="1"/>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts" setup>
|
||
|
|
import {onShow} from "@dcloudio/uni-app";
|
||
|
|
import {isTabBar} from "@/utils/uniapp";
|
||
|
|
import pages from '@/pages.json'
|
||
|
|
|
||
|
|
const isShow = ref(true)
|
||
|
|
onShow(async () => {
|
||
|
|
if (isTabBar()) {
|
||
|
|
uni.switchTab({
|
||
|
|
url: '/' + (pages as any).tabBar.list[0].pagePath
|
||
|
|
})
|
||
|
|
} else {
|
||
|
|
uni.reLaunch({
|
||
|
|
url: '/' + pages.pages[1].path
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|