lanan-repair/pages/index/index.vue
2024-09-23 09:48:02 +08:00

37 lines
415 B
Vue

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