diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 4d4a105..2feaa2c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -139,9 +139,11 @@ export default { .then(() => { this.$store.dispatch("LogOut").then(() => { location.href = - process.env.NODE_ENV === "production" - ? "/demo/suzhouyingjiPC/" - : "/"; + // 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 d4d4177..701d097 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -1,6 +1,6 @@