Commit f0473aa4 authored by 王's avatar

登陆名称替换

parent c607f790
......@@ -64,7 +64,7 @@
};
loginApi(json).then(res=>{
this.$store.dispatch('setToken',res.token);
this.$store.dispatch('setUserName',res.user_name);
this.$store.dispatch('setUserName',res.desc);
this.$store.dispatch('setPermission',JSON.parse(res.roles.menu_ids));
window.location.href = '/'
})
......
......@@ -41,7 +41,7 @@
label="用户名">
</el-table-column>
<el-table-column
prop="role_id"
prop="role_name"
label="角色">
</el-table-column>
<el-table-column
......@@ -50,6 +50,10 @@
{{scope.row.status | adminStatus}}
</template>
</el-table-column>
<el-table-column
prop="desc"
label="备注">
</el-table-column>
<el-table-column
v-if="!$store.state.readonly"
label="操作">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment