Files
yunzerwebsiteallinone/uniapp/pages/index/index.vue
T
2026-11-16 17:22:50 +08:00

35 lines
660 B
Vue

<template>
<view class="boot">
<image class="boot-logo" src="/static/logo.png" mode="aspectFit"></image>
<text class="boot-text">正在进入…</text>
</view>
</template>
<script>
import { onShow } from '@dcloudio/uni-app'
import { isLoggedIn } from '@/utils/auth.js'
onShow(() => {
uni.reLaunch({ url: isLoggedIn() ? '/pages/nav/nav' : '/pages/login/login' })
})
</script>
<style>
.boot {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
.boot-logo {
width: 180rpx;
height: 180rpx;
margin-bottom: 32rpx;
}
.boot-text {
font-size: 28rpx;
color: #8f8f94;
}
</style>