no message

This commit is contained in:
kuaifan 2021-06-25 14:26:24 +08:00
parent c55ff4f17f
commit 9e1dd940b8
6 changed files with 33 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
/public/.user.ini
/storage/*.key
/vendor
/build
/tmp
._*
.env

25
nativefier.js vendored Normal file
View File

@ -0,0 +1,25 @@
const nativefier = require('nativefier').default;
const config = require('./package.json');
const options = {
name: config.name,
version: config.version,
targetUrl: 'http://127.0.0.1:2222',
arch: 'arm64',
out: './build',
icon: './resources/assets/statics/public/images/logo-app.png',
clearCache: false,
disableDevTools: false,
disableContextMenu: false,
fileDownloadOptions: {
saveAs: true,
},
};
nativefier(options, function (error, appPath) {
if (error) {
console.error(error);
} else {
console.log('App has been nativefied to', appPath);
}
});

View File

@ -1,5 +1,7 @@
{
"private": true,
"name": "DooTask",
"version": "0.0.2",
"description": "DooTask is task management system",
"scripts": {
"dev": "npm run development",
"development": "mix",
@ -19,6 +21,7 @@
"laravel-mix": "^6.0.6",
"lodash": "^4.17.19",
"moment": "^2.29.1",
"nativefier": "^44.0.4",
"node-sass": "^4.11.0",
"postcss": "^8.1.14",
"resolve-url-loader": "^4.0.0",

View File

@ -1412,7 +1412,9 @@ export default {
// 更新对话列表
if (dialog) {
// 新增未读数
if (data.userid !== state.userId) dialog.unread++;
if (data.userid !== state.userId && state.dialogMsgs.findIndex(({id}) => id == data.id) === -1) {
dialog.unread++;
}
// 移动到首位
dispatch("moveDialogTop", dialog_id);
}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB