From 2845eaeb86011c7cbc862415ef6add59e8254a5e Mon Sep 17 00:00:00 2001 From: majintao Date: Mon, 23 Dec 2024 10:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=8A=A0=E8=AE=B0?= =?UTF-8?q?=E4=BD=8F=E5=AF=86=E7=A0=81=EF=BC=883=E5=A4=A9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl b/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl index 600cf8f4b..cec747b40 100644 --- a/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl +++ b/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl @@ -119,7 +119,7 @@ if (username && token) { // 自动登录 console.log("自动登录用户:" + username); - window.location.href = "district/weXinList?type=gb"; + window.location.href = "../district/weXinList?type=gb&cityName=上海"; // 可以在这里用 token 验证用户身份,或者直接跳转到主页面 // 比如:window.location.href = 'dashboard.html'; } else { @@ -148,6 +148,7 @@ if(re.result == "fail"){ $.toast(re.msg); } else { + setLoginCookie(username, re.token); window.location.href = "reqCityChoicePage?type=gb"; } },error:function (data, status) {