// import axios from '~plugins/axios' // // export const actions = { // // 登录选择企业 // GetLoginStyle ({commit}, params = {}) { // commit('loginStyle/REQUEST_LOGIN_STYLE', params) // return axios.get(`/sso/login/page/style`, {params}) // .then(response => { // console.log(response.data) // commit('loginStyle/GET_LOGIN_STYLE_SUCCESS', response.data) // }, err => { // commit('loginStyle/GET_LOGIN_STYLE_FAILURE', err) // }) // } // } export const state = () => ({ token: { data: '' } }) export const mutations = { GET_TOKEN (state, res) { state.token.data = res } }