feat: ✨ 整合Vite 环境变量和反向代理
This commit is contained in:
@@ -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(); // 登录成功后返回上一页
|
||||
|
||||
Reference in New Issue
Block a user