Skip to content

Commit

Permalink
fix: 🐛 #21 修复报警配置用户名显示ID的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaodeezhu committed Feb 15, 2022
1 parent 4cd05e7 commit 10dbe1b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/views/JobManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,15 @@
mounted() {
// 加载用户信息
let that = this;
that.axios.get("/user/list").then(res => that.userList = res);
that.axios.get("/user/list").then(res => {
const data = res || [];
that.userList = data.map(item => {
return {
...item,
id: `${item.id}`
}
})
});
// 加载任务信息
this.listJobInfos();
}
Expand Down

0 comments on commit 10dbe1b

Please sign in to comment.