lanan-repair/pages/index/index.vue

37 lines
420 B
Vue
Raw Normal View History

2024-09-22 15:07:01 +08:00
<template>
<view class="content">
2024-09-23 09:48:02 +08:00
2024-09-22 15:07:01 +08:00
</view>
</template>
<script>
2024-09-23 09:48:02 +08:00
import {getToken} from "@/utils/auth";
export default {
2024-09-22 15:07:01 +08:00
data() {
return {
2024-09-23 09:48:02 +08:00
2024-09-22 15:07:01 +08:00
}
},
onLoad() {
2024-09-23 09:48:02 +08:00
if (getToken()) {
uni.reLaunch({
2024-09-28 00:17:38 +08:00
url: '/pages-home/home/home'
2024-09-23 09:48:02 +08:00
})
} else {
uni.reLaunch({
url: '/pages/login/login'
})
}
2024-09-22 15:07:01 +08:00
},
methods: {
}
}
</script>
<style>
</style>