flat: 修改请求地址

This commit is contained in:
Apcallover
2024-05-15 16:56:32 +08:00
parent 31d259b313
commit 516ce1c9ee
7 changed files with 2463 additions and 14 deletions

View File

@@ -58,7 +58,7 @@ 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)) {
window.location.href = 'http://10.160.7.216:9920/casserver/login?service=http://10.165.0.77/manage/login&stService=http%3A%2F%2F10.165.0.77%2Fmanage%2Flogin'
window.location.href = process.env.VUE_APP_LOGIN_NEXT
}
if (/(\/login\?)(.*)/ig.test(location.href)) {
const obj = {}

View File

@@ -62,7 +62,7 @@ axios.interceptors.response.use(
//如果是401则跳转到登录页面
if (status === 401) {
store.dispatch('FedLogOut').then(() => {
window.location.href = 'http://10.160.7.216:9920/casserver/login?service=http://10.165.0.77/manage/login&stService=http%3A%2F%2F10.165.0.77%2Fmanage%2Flogin'
window.location.href = process.env.VUE_APP_LOGIN_NEXT
});
// store.dispatch('FedLogOut').then(() => router.push({path: '/login'}));
}