Pan %!s(int64=7) %!d(string=hai) anos
pai
achega
4ac038019a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/store/modules/user.js

+ 1 - 1
src/store/modules/user.js

@@ -44,7 +44,7 @@ const user = {
44 44
     GetInfo({ commit, state }) {
45 45
       return new Promise((resolve, reject) => {
46 46
         getInfo(state.token).then(response => {
47
-          const data = response
47
+          const data = response.data
48 48
           if (data.roles && data.roles.length > 0) { // 验证返回的roles是否是一个非空数组
49 49
             commit('SET_ROLES', data.roles)
50 50
           } else {