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

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

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

Loading…
Cancel
Save