This commit is contained in:
duanxiaohai 2024-07-16 16:22:21 +08:00
parent 944035a54d
commit 5d79396e81
3 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -203,6 +203,7 @@ const getOption = () => {
show: true,
position: "top",
color: "#ffffff",
fontSize:'17',
formatter: function (data) {
return data.value;
},

View File

@ -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, //是否支持跨域