瀏覽代碼

登录

master
Lxf 2 年之前
父節點
當前提交
9f149ac46e
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 1
    1
      src/router/index.js
  2. 1
    1
      src/store/modules/luru.js
  3. 3
    3
      src/views/login/index.vue

+ 1
- 1
src/router/index.js 查看文件

@@ -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;

+ 1
- 1
src/store/modules/luru.js 查看文件

@@ -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){

+ 3
- 3
src/views/login/index.vue 查看文件

@@ -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: '/' })

Loading…
取消
儲存