|
|
|
@ -78,12 +78,11 @@ export default {
|
|
|
|
|
dept: (state) => state.user.dept,
|
|
|
|
|
username: (state) => state.user.name,
|
|
|
|
|
roles: (state) => state.user.roles,
|
|
|
|
|
newRouter:(state) => state.user.newRouter,
|
|
|
|
|
new1:(state) => state.user.new1,
|
|
|
|
|
newRouter: (state) => state.user.newRouter,
|
|
|
|
|
new1: (state) => state.user.new1,
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
watch: {
|
|
|
|
|
$route: {
|
|
|
|
|
handler(n, o) {
|
|
|
|
@ -111,7 +110,10 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$store.dispatch("LogOut").then(() => {
|
|
|
|
|
location.href = "/demo/suzhouyingjiPC/";
|
|
|
|
|
location.href =
|
|
|
|
|
process.env.NODE_ENV === "production"
|
|
|
|
|
? "/demo/suzhouyingjiPC/"
|
|
|
|
|
: "/";
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|