flat: 暂存

This commit is contained in:
Apcallover
2024-04-15 19:43:51 +08:00
parent 6cde769a9f
commit d84dc9e2ee
5 changed files with 8 additions and 2 deletions

1
.env
View File

@@ -1 +0,0 @@
VUE_APP_SITE='default'

2
.env.development Normal file
View File

@@ -0,0 +1,2 @@
VUE_APP_SITE='default'
VUE_APP_LOGIN_ERROR = 'http://10.160.7.216:9920/casserver/login'

2
.env.production Normal file
View File

@@ -0,0 +1,2 @@
VUE_APP_SITE='default'
VUE_APP_LOGIN_ERROR = 'http://10.160.7.216:9920/casserver/login'

View File

@@ -175,6 +175,9 @@ export default {
loading.close(); loading.close();
this.proLoading = false this.proLoading = false
}).catch(() => { }).catch(() => {
if(obj.ticket) {
return window.location.href = process.env.VUE_APP_LOGIN_ERROR
}
this.proLoading = false this.proLoading = false
loading.close(); loading.close();
this.refreshCode(); this.refreshCode();

View File

@@ -23,7 +23,7 @@ module.exports = {
port: 1888, port: 1888,
proxy: { proxy: {
"/api": { "/api": {
target: 'http://192.168.3.215:8000', target: 'http://10.165.0.173:8000',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {