From 4ac038019a1dcc8defbec82092706f381b9ffbf6 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 2 May 2018 17:44:35 +0800 Subject: [PATCH] fix typo --- src/store/modules/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 7d35e0e..b504067 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -44,7 +44,7 @@ const user = { GetInfo({ commit, state }) { return new Promise((resolve, reject) => { getInfo(state.token).then(response => { - const data = response + const data = response.data if (data.roles && data.roles.length > 0) { // 验证返回的roles是否是一个非空数组 commit('SET_ROLES', data.roles) } else {