峰峰执法平台简易案件程序板块 pad端
zhangxiaoxu123
2022-10-26 ce3c9d345a27d3a86e6c096d927f3ee619b6e68f
src/store/modules/user.js
@@ -30,6 +30,9 @@
const user = {
  state: {
    id: getStore({
      name: 'id'
    }),
    userInfo: getStore({
      name: 'userInfo'
    }) || {},
@@ -198,6 +201,14 @@
    }
  },
  mutations: {
    SET_ID: (state, id) => {
      state.id = id
      setStore({
        name:'id',
        content: state.id,
        type: 'session'
      })
    },
    SET_ACCESS_TOKEN: (state, access_token) => {
      state.access_token = access_token
      setStore({