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

This commit is contained in:
sexygoat
2026-04-16 16:56:52 +08:00
parent 64f479c62a
commit 25e9946c17

View File

@@ -712,6 +712,11 @@
};
onMounted(() => {
const token = uni.getStorageSync('token');
if (!token) {
uni.reLaunch({ url: '/pages/login/login' });
return;
}
initCurrentMonth();
loadAssetInfo();
});