lijinlong^2
laozt 1 year ago
parent 2feea06604
commit 073ebe0adf

@ -138,12 +138,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 = location.href = process.env.NODE_ENV === "production" ? "./" : "/";
process.env.NODE_ENV === "production" ? "./" : "/";
}); });
}) })
.catch(() => {}); .catch(() => {});

@ -112,13 +112,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 = location.href = process.env.NODE_ENV === "production" ? "./" : "/";
process.env.NODE_ENV === "production" ? "./" : "/";
}); });
}) })
.catch(() => {}); .catch(() => {});

Loading…
Cancel
Save