feat: 初始化

This commit is contained in:
George
2025-07-07 16:05:18 +08:00
commit c169958240
986 changed files with 132574 additions and 0 deletions

26
pages/index/index.vue Normal file
View File

@ -0,0 +1,26 @@
<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>