@@ -2,7 +2,7 @@ import Vue from 'vue' | |||
import Router from 'vue-router' | |||
import store from '../store/modules/printPage' | |||
Vue.use(Router) | |||
console.log(store) | |||
setTimeout(()=>{console.log(store)},5000) | |||
if (store.state.TitleName) { | |||
console.log(store.state.TitleName) | |||
var TitleNames = store.state.TitleName; |
@@ -51,7 +51,7 @@ const state = getDefaultState() | |||
const mutations = { | |||
RESET_STATE: (state) => { | |||
Object.assign(state, getDefaultState()) | |||
// Object.assign(state, getDefaultState()) | |||
}, | |||
setstate:(state,value)=>{ | |||
if(value){ |
@@ -156,9 +156,9 @@ export default { | |||
console.log(this.$router) | |||
that.getUserInfo().then((res) => { | |||
console.log(res) | |||
if (that.old_user != res) { | |||
this.statusInit(false) | |||
} | |||
// if (that.old_user != res) { | |||
this.statusInit(true) | |||
// } | |||
if ( this.lock_gongzi || this.lock_gongshi || this.lock_waipandan || this.lock_gongshi_getold ) { | |||
that.$router.push({ name: '/' }) |