feat: 登录缓存token
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 47s

This commit is contained in:
sexygoat
2026-04-16 17:01:36 +08:00
parent 25e9946c17
commit e0db2b6df0

View File

@@ -67,6 +67,13 @@
const userStore = useUserStore();
onMounted(() => {
const token = uni.getStorageSync('token');
if (token) {
uni.reLaunch({ url: '/pages/index/index' });
}
});
const identifier = ref('');
const loading = ref(false);
const agreed = ref(true);