lijinlong^2
laozt 1 year ago
parent 6e17ee73f4
commit 3ce2938264

@ -139,9 +139,11 @@ export default {
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { this.$store.dispatch("LogOut").then(() => {
location.href = location.href =
process.env.NODE_ENV === "production" // process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/" // ? "/demo/suzhouyingjiPC/"
: "/"; // : "/";
location.href =
process.env.NODE_ENV === "production" ? "./" : "/";
}); });
}) })
.catch(() => {}); .catch(() => {});

@ -1,6 +1,6 @@
<template> <template>
<div class="big-container"> <div class="big-container">
<div class="left-menu" > <div class="left-menu">
<nav class="menu-headers"> <nav class="menu-headers">
<div> <div>
<img src="../assets/images/logo.png" alt="" /> <img src="../assets/images/logo.png" alt="" />
@ -8,7 +8,7 @@
<div class="nav-text">苏州市应急</div> <div class="nav-text">苏州市应急</div>
<div class="nav-text">执法计划管理系统</div> <div class="nav-text">执法计划管理系统</div>
</nav> </nav>
<div > <div>
<div <div
v-for="(item, index) in newRouter" v-for="(item, index) in newRouter"
:key="index" :key="index"
@ -111,10 +111,15 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { // this.$store.dispatch("LogOut").then(() => {
location.href = // location.href =
// process.env.NODE_ENV === "production"
// ? "/demo/suzhouyingjiPC/"
// : "/";
// });
location.href =
process.env.NODE_ENV === "production" process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/" ? "./"
: "/"; : "/";
}); });
}) })

Loading…
Cancel
Save