import { getConfig } from "@/common/api.js"
|
|
|
|
export default {
|
|
state: {
|
|
configList:[]
|
|
},
|
|
|
|
mutations: {
|
|
setUserInfo(state,obj){
|
|
state.configList = obj
|
|
},
|
|
// 初始化配置
|
|
initConfig(){
|
|
getConfig({}).then(response=>{
|
|
console.info(response)
|
|
// that.commit('setUserInfo',{userInfo:response.result.userInfo,token:response.result.token})
|
|
}).catch(error=>{
|
|
|
|
})
|
|
},
|
|
},
|
|
|
|
actions: {}
|
|
}
|