flat: 石河子修改登陆跳转问题

This commit is contained in:
yangxiao
2025-12-25 10:05:59 +08:00
parent 7b0c0a1b60
commit 60a5c1f666
2 changed files with 7 additions and 7 deletions

View File

@@ -46,11 +46,11 @@ import topLang from "@/page/index/top/top-lang";
import { getCaptcha } from "@/api/user";
console.log('是否跳转', /(^http)(s?):\/\/([a-z0-9].+)\/manage(\/)?$/i.test(location.href), location.href)
if (/(^http)(s?):\/\/([a-z0-9].+)\/manage(\/)?$/i.test(location.href)) {
if (process.env.NODE_ENV !== "development") {
window.location.href = process.env.VUE_APP_LOGIN_NEXT;
}
}
// if (/(^http)(s?):\/\/([a-z0-9].+)\/manage(\/)?$/i.test(location.href)) {
// if (process.env.NODE_ENV !== "development") {
// window.location.href = process.env.VUE_APP_LOGIN_NEXT;
// }
// }
if (/(\/login\?)(.*)/ig.test(location.href)) {
const obj = {}
const query = location.href.split('?')[1].replace(/\?/, '').split('&')