From 5d79396e81652877e9bc83ae864e342ae9164839 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Tue, 16 Jul 2024 16:22:21 +0800 Subject: [PATCH] gx --- src/utils/request.js | 6 +++--- src/view/echarts_education/pie.vue | 1 + vite.config.js | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 7ce055b..efd7178 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -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) { diff --git a/src/view/echarts_education/pie.vue b/src/view/echarts_education/pie.vue index 4d1b8fc..16b6350 100644 --- a/src/view/echarts_education/pie.vue +++ b/src/view/echarts_education/pie.vue @@ -203,6 +203,7 @@ const getOption = () => { show: true, position: "top", color: "#ffffff", + fontSize:'17', formatter: function (data) { return data.value; }, diff --git a/vite.config.js b/vite.config.js index 6e3deef..79888cc 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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, //是否支持跨域