Closed zyccsnow closed 6 years ago
文件路径: /app/src/renderer/main.js:30 此处为: const roles = res.data.role; 现应为:const roles = res.data.roles; 可能是服务端返回的命名变了吧?
const roles = res.data.role;
const roles = res.data.roles;
除了上面说的,这里也需要修改: 文件路径:app\src\renderer\store\modules\user.js:48 此处为: commit('SET_ROLES', data.role); 现应为:commit('SET_ROLES', data.roles);
已修复
文件路径: /app/src/renderer/main.js:30 此处为:
const roles = res.data.role;
现应为:const roles = res.data.roles;
可能是服务端返回的命名变了吧?