fix(templates): URI编码

This commit is contained in:
xiongxiaoyang
2025-07-12 18:32:28 +08:00
parent d54eda2366
commit 6452c1603f
28 changed files with 38 additions and 38 deletions

View File

@ -58,7 +58,7 @@
} else if (data.code == 1001) {
//未登录
location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@ -81,7 +81,7 @@
} else if (data.code == 1001) {
//未登录
location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);