From 1891d9b951cbf5ba957120e25edcca7ba3dfdf68 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Fri, 6 Oct 2023 13:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=992=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/layout/newyjLayout.vue | 18 ++++++++---------- src/views/yingji/echarts/finishRate.vue | 12 ++++++------ 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index 0909b16..316dd69 100644 --- a/.env.development +++ b/.env.development @@ -12,8 +12,8 @@ VUE_APP_TITLE = 苏州应急执法计划管理系统 ENV = 'development' # 苏州应急执法计划管理系统/开发环境 -# VUE_APP_BASE_API = 'http://localhost:9028' -VUE_APP_BASE_API = '/api' +VUE_APP_BASE_API = 'http://39.101.188.84:9033' +# VUE_APP_BASE_API = '/api' # 路由懒加载 diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index 5ad7c49..4e0aca1 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -111,16 +111,14 @@ export default { type: "warning", }) .then(() => { - // this.$store.dispatch("LogOut").then(() => { - // location.href = - // process.env.NODE_ENV === "production" - // ? "/demo/suzhouyingjiPC/" - // : "/"; - // }); - location.href = - process.env.NODE_ENV === "production" - ? "./" - : "/"; + this.$store.dispatch("LogOut").then(() => { + location.href = + // process.env.NODE_ENV === "production" + // ? "/demo/suzhouyingjiPC/" + // : "/"; + + location.href = + process.env.NODE_ENV === "production" ? "./" : "/"; }); }) .catch(() => {}); diff --git a/src/views/yingji/echarts/finishRate.vue b/src/views/yingji/echarts/finishRate.vue index 982eea4..9276d45 100644 --- a/src/views/yingji/echarts/finishRate.vue +++ b/src/views/yingji/echarts/finishRate.vue @@ -1,4 +1,4 @@ -