From 073ebe0adfbeaf635b65af78b210a47be58a8179 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Sat, 7 Oct 2023 09:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 11 +++++------ src/layout/newyjLayout.vue | 10 ++++------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 2feaa2c..cacf3c0 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -138,12 +138,11 @@ export default { }) .then(() => { this.$store.dispatch("LogOut").then(() => { - location.href = - // process.env.NODE_ENV === "production" - // ? "/demo/suzhouyingjiPC/" - // : "/"; - location.href = - process.env.NODE_ENV === "production" ? "./" : "/"; + // location.href = process.env.NODE_ENV === "production" + // ? "/demo/suzhouyingjiPC/" + // : "/"; + + location.href = process.env.NODE_ENV === "production" ? "./" : "/"; }); }) .catch(() => {}); diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index 12f52cf..d1f55a2 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -112,13 +112,11 @@ export default { }) .then(() => { this.$store.dispatch("LogOut").then(() => { - location.href = - // process.env.NODE_ENV === "production" - // ? "/demo/suzhouyingjiPC/" - // : "/"; + // location.href = process.env.NODE_ENV === "production" + // ? "/demo/suzhouyingjiPC/" + // : "/"; - location.href = - process.env.NODE_ENV === "production" ? "./" : "/"; + location.href = process.env.NODE_ENV === "production" ? "./" : "/"; }); }) .catch(() => {});