import Cookies from 'js-cookie'
import { login, logout, getInfo } from '@/api/acl/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import { resetRouter } from '@/router'
import api from '@/api/api'

const state = {
    readFlag: ""
}

const mutations = {


    SET_readFlag: (state, number) => {
        state.readFlag = number
    },

    SET_ROLES: (state, roles) => {
        state.roles = roles
    }
}

const actions = {
    setreadFlag({ commit }, number) {
        commit('SET_readFlag', number)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}