27 lines
399 B
Vue
27 lines
399 B
Vue
<template>
|
|
<view></view>
|
|
</template>
|
|
|
|
<script>
|
|
import { getToken } from '@/utils/const.ts';
|
|
export default {
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {},
|
|
onLoad() {},
|
|
onShow() {
|
|
const token = getToken();
|
|
if (token) {
|
|
uni.redirectTo({ url: '/pages/home/index' });
|
|
} else {
|
|
uni.redirectTo({ url: '/pages/login/index' });
|
|
}
|
|
},
|
|
methods: {},
|
|
components: {}
|
|
};
|
|
</script>
|
|
|
|
<style></style>
|