This commit is contained in:
parent
944035a54d
commit
5d79396e81
|
@ -30,9 +30,9 @@ axios.interceptors.response.use(
|
|||
if (error.response.status == 401) {
|
||||
ElMessage.error("请重新登录!");
|
||||
// window.location.href = '/#/login?returnURL=' + window.location.href
|
||||
window.location.href =
|
||||
'http://220.191.238.50:996/api/login?returnURL=' +
|
||||
window.location.href
|
||||
// window.location.href =
|
||||
// 'http://220.191.238.50:996/api/login?returnURL=' +
|
||||
// window.location.href
|
||||
} else if (error.response.status == 404) {
|
||||
ElMessage.error("Status:404,正在请求不存在的服务器记录!");
|
||||
} else if (error.response.status == 500) {
|
||||
|
|
|
@ -203,6 +203,7 @@ const getOption = () => {
|
|||
show: true,
|
||||
position: "top",
|
||||
color: "#ffffff",
|
||||
fontSize:'17',
|
||||
formatter: function (data) {
|
||||
return data.value;
|
||||
},
|
||||
|
|
|
@ -15,7 +15,6 @@ export default defineConfig({
|
|||
// 第一个代理
|
||||
"/api": {
|
||||
// 匹配到啥来进行方向代理
|
||||
// target: "http://192.168.2.42:8095/", //本地
|
||||
target: "http://192.168.2.17:8095/", //刘进
|
||||
// target: "http://220.191.238.50:996/", //线上
|
||||
changeOrigin: true, //是否支持跨域
|
||||
|
|
Loading…
Reference in New Issue