fix: 修复消息通知查询不到用户报错

--bug=1008980 --user=刘瑞斌 【站内信】提示报错 https://www.tapd.cn/55049933/s/1084951
This commit is contained in:
CaptainB 2021-12-22 14:13:04 +08:00 committed by 刘瑞斌
parent e7e2c1a09c
commit 915750f055
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ export default {
if (now - d.createTime > 10 * 1000) {
return;
}
d.user = this.userMap[d.operator];
d.user = this.userMap[d.operator] || {name: 'MS'};
let message = d.user.name + getOperation(d.operation) + getResource(d) + ": " + d.resourceName;
let title = d.type === 'MENTIONED_ME' ? this.$t('commons.mentioned_me_notice') : this.$t('commons.system_notice');
setTimeout(() => {