login.js 650 B

123456789101112131415161718192021222324252627
  1. // import axios from '~plugins/axios'
  2. //
  3. // export const actions = {
  4. // // 登录选择企业
  5. // GetLoginStyle ({commit}, params = {}) {
  6. // commit('loginStyle/REQUEST_LOGIN_STYLE', params)
  7. // return axios.get(`/sso/login/page/style`, {params})
  8. // .then(response => {
  9. // console.log(response.data)
  10. // commit('loginStyle/GET_LOGIN_STYLE_SUCCESS', response.data)
  11. // }, err => {
  12. // commit('loginStyle/GET_LOGIN_STYLE_FAILURE', err)
  13. // })
  14. // }
  15. // }
  16. export const state = () => ({
  17. token: {
  18. data: ''
  19. }
  20. })
  21. export const mutations = {
  22. GET_TOKEN (state, res) {
  23. state.token.data = res
  24. }
  25. }