flat: 修改请求地址
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
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'
|
||||
|
||||
@@ -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
2464
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
@@ -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'}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user