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

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

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(); // 登录成功后返回上一页