lanan-repair-app/pages/index/index.vue
2024-10-17 15:22:37 +08:00

39 lines
446 B
Vue

<template>
<view class="content">
</view>
</template>
<script>
import {
getToken
} from "@/utils/auth";
export default {
data() {
return {
}
},
onLoad() {
if(getToken()){
//跳转首页
uni.navigateTo({
url: '/pages-home/home/home'
})
}else{
uni.navigateTo({
url: '/pages/login/login'
})
}
},
methods: {
}
}
</script>
<style>
</style>