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

@ -111,10 +111,15 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { // this.$store.dispatch("LogOut").then(() => {
// location.href =
// process.env.NODE_ENV === "production"
// ? "/demo/suzhouyingjiPC/"
// : "/";
// });
location.href = location.href =
process.env.NODE_ENV === "production" process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/" ? "./"
: "/"; : "/";
}); });
}) })

Loading…
Cancel
Save