perf: 隐藏无聊天内容的对话
This commit is contained in:
parent
fcf7fb4b9f
commit
004bf36dc1
@ -126,10 +126,13 @@ export default {
|
||||
if (dialogActive == '' && dialogKey == '') {
|
||||
return this.cacheDialogs.filter(({name}) => name !== undefined);
|
||||
}
|
||||
return this.cacheDialogs.filter(({name, type, group_type, last_msg}) => {
|
||||
return this.cacheDialogs.filter(({name, type, group_type, last_msg, last_at}) => {
|
||||
if (name === undefined) {
|
||||
return false;
|
||||
}
|
||||
if (!last_at) {
|
||||
return false;
|
||||
}
|
||||
if (dialogActive) {
|
||||
switch (dialogActive) {
|
||||
case 'project':
|
||||
|
Loading…
x
Reference in New Issue
Block a user