no message

This commit is contained in:
kuaifan 2021-07-06 12:06:47 +08:00
parent 13fd652596
commit e2c6812b08
8 changed files with 24 additions and 19 deletions

1
nativefier.js vendored
View File

@ -47,6 +47,7 @@ const questions = [
value: {
platform: 'windows',
arch: 'x64',
icon: './resources/assets/statics/public/images/logo-app.ico',
}
}]
}

View File

@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.2.54",
"version": "0.2.56",
"description": "DooTask is task management system.",
"scripts": {
"dev": "npm run development",

BIN
public/images/logo-app.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -225,7 +225,9 @@ export default {
msgAllUnread() {
let num = 0;
this.dialogs.map(({unread}) => {
num += unread;
if (unread) {
num += unread;
}
})
return num;
},

View File

@ -146,21 +146,23 @@ export default {
return function (type) {
let num = 0;
this.dialogs.map((dialog) => {
switch (type) {
case 'project':
case 'task':
if (type == dialog.group_type) {
if (dialog.unread) {
switch (type) {
case 'project':
case 'task':
if (type == dialog.group_type) {
num += dialog.unread;
}
break;
case 'user':
if (type == dialog.type) {
num += dialog.unread;
}
break;
default:
num += dialog.unread;
}
break;
case 'user':
if (type == dialog.type) {
num += dialog.unread;
}
break;
default:
num += dialog.unread;
break;
break;
}
}
});
return num;