初始代码

This commit is contained in:
wangmingwei
2026-04-21 16:55:00 +08:00
parent be9f1657b9
commit 35101db700
1335 changed files with 211213 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<template>
<view class="">
</view>
</template>
<script>
import {
useUserStore
} from '@/store/modules/user'
export default {
data() {
return {
token: ''
}
},
onLoad(e) {
this.token = e.token
this.init()
},
methods: {
init() {
const userStore = useUserStore()
userStore.setToken(this.token)
userStore.getCurrentUser().then((res) => {
uni.hideLoading()
uni.switchTab({
url: '/pages/index/index'
});
this.show = false
}).catch(() => {
uni.hideLoading()
uni.switchTab({
url: '/pages/login/index'
});
})
}
}
}
</script>
<style>
</style>