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(() => {});