Commit 5d02e756 authored by 张牧越's avatar 张牧越

urlfix

parent 5889c586
NODE_ENV = "development" NODE_ENV = "development"
Mock: true Mock: true
VUE_APP_API_URL = "http://qjwl.ythplan.com/" VUE_APP_API_URL = "https://yth.vnet1000.net/"
# VUE_APP_API_URL = "http://192.168.0.165:8002/"
NODE_ENV = "production" NODE_ENV = "production"
Mock: false Mock: false
VUE_APP_API_URL = "http://qjwl.ythplan.com/" VUE_APP_API_URL = ""
# VUE_APP_API_URL = "http://192.168.0.165:8002/" \ No newline at end of file
\ No newline at end of file
...@@ -28,7 +28,7 @@ noLoadingrequest.interceptors.response.use( ...@@ -28,7 +28,7 @@ noLoadingrequest.interceptors.response.use(
}) })
} }
if (response.data.status == 401) { if (response.data.status == 401) {
window.location.href = process.env.VUE_APP_API_URL + 'pweb/m/login?is_screen=1' window.location.href = window.location.origin + '/pweb/m/login?is_screen=1'
} }
return response.data return response.data
}, },
......
...@@ -64,7 +64,7 @@ request.interceptors.response.use( ...@@ -64,7 +64,7 @@ request.interceptors.response.use(
}) })
} }
if (response.data.status == 401) { if (response.data.status == 401) {
window.location.href = process.env.VUE_APP_API_URL + 'pweb/m/login?is_screen=1' window.location.href = window.location.origin + '/pweb/m/login?is_screen=1'
} }
return response.data return response.data
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment