PanJiaChen / electron-vue-admin

vue electron admin template web: http://panjiachen.github.io/vue-admin-template
3.13k stars 987 forks source link

无法登录报错 #9

Closed zyccsnow closed 6 years ago

zyccsnow commented 6 years ago

文件路径: /app/src/renderer/main.js:30 此处为: const roles = res.data.role; 现应为:const roles = res.data.roles; 可能是服务端返回的命名变了吧?

tommyCyberInsight commented 6 years ago

除了上面说的,这里也需要修改: 文件路径:app\src\renderer\store\modules\user.js:48 此处为: commit('SET_ROLES', data.role); 现应为:commit('SET_ROLES', data.roles);

PanJiaChen commented 6 years ago

已修复