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

@@ -1,3 +1,4 @@
VUE_APP_SITE='default'
VUE_APP_LOGIN_ERROR = http://10.160.7.216:9920/casserver/login
VUE_APP_REPLACE_STR = {"{oss_file_url}": "http://10.165.0.173:8000", "https://dy12333.org.cn/api/jobslink-api/front/file": "http://10.165.0.173:8000/jobslink-api/front/file"}
VUE_APP_LOGIN_NEXT = 'http://10.160.7.216:9920/casserver/login?service=http://10.165.0.173/manage/login&stService=http%3A%2F%2F10.165.0.173%2Fmanage%2Flogin'

View File

@@ -1 +1,4 @@
VUE_APP_SITE='hengshui'
VUE_APP_SITE='hengshui'
VUE_APP_LOGIN_ERROR = http://10.160.7.216:9920/casserver/login
VUE_APP_REPLACE_STR = {"{oss_file_url}": "http://10.165.0.173:8000", "https://dy12333.org.cn/api/jobslink-api/front/file": "http://10.165.0.173:8000/jobslink-api/front/file"}
VUE_APP_LOGIN_NEXT = 'http://10.160.7.216:9920/casserver/login?service=http://10.165.0.173/manage/login&stService=http%3A%2F%2F10.165.0.173%2Fmanage%2Flogin'

View File

@@ -1,3 +1,4 @@
VUE_APP_SITE='default'
VUE_APP_LOGIN_ERROR = http://10.160.7.216:9920/casserver/login
VUE_APP_REPLACE_STR = {"{oss_file_url}": "http://10.165.0.173:8000", "https://dy12333.org.cn/api/jobslink-api/front/file": "http://10.165.0.173:8000/jobslink-api/front/file"}
VUE_APP_LOGIN_NEXT = 'http://10.160.7.216:9920/casserver/login?service=http://10.165.0.54:8300/manage/login&stService=http%3A%2F%2F10.165.0.54%3A8300%2Fmanage%2Flogin'

2464
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,6 +14,7 @@
},
"dependencies": {
"@smallwei/avue": "2.6.10",
"@supermap/iclient-ol": "^11.1.1",
"avue-plugin-ueditor": "^0.0.10",
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
@@ -40,6 +41,7 @@
"xlsx": "^0.16.2"
},
"devDependencies": {
"@supermap/babel-plugin-import": "0.0.1",
"@vue/cli-plugin-babel": "^3.1.1",
"@vue/cli-plugin-eslint": "^3.1.5",
"@vue/cli-service": "^3.1.4",

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'}));
}