feat: ✨ 整合Vite 环境变量和反向代理

This commit is contained in:
ray committed 2024-09-23 18:23:10 +08:00
1 parent 737f6a3ee5
commit 272d643744
16 files changed
+5187 -6476

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ const userStore = useUserStore();
const handleLogin = async () => {
await userStore.login(username.value, password.value);
if (!!userStore.token) {
if (userStore.token) {
await userStore.getUserInfo(); // 登录成功后获取用户信息
uni.showToast({ title: "登录成功", icon: "success" });
uni.navigateBack(); // 登录成功后返回上一页