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({
|
|
|
|
url: '/pages/home/home'
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
uni.reLaunch({
|
|
|
|
url: '/pages/login/login'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-09-22 15:07:01 +08:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|