flat: 石河子修改登陆跳转问题
This commit is contained in:
@@ -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('&')
|
||||
|
||||
Reference in New Issue
Block a user