mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
no message
This commit is contained in:
parent
e9e090fdf6
commit
e0ecd0ad0a
@ -831,26 +831,28 @@ export default {
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
const {project_user} = this.projectData;
|
const {project_user} = this.projectData;
|
||||||
const userItems = project_user.map((item, index) => {
|
if ($A.isArray(project_user)) {
|
||||||
const userInfo = cacheUserBasic.find(({userid}) => userid === item.userid) || {}
|
const userItems = project_user.map((item, index) => {
|
||||||
const length = allTask.filter(({task_user, complete_at}) => {
|
const userInfo = cacheUserBasic.find(({userid}) => userid === item.userid) || {}
|
||||||
if (!this.projectData.cacheParameter.completedTask) {
|
const length = allTask.filter(({task_user, complete_at}) => {
|
||||||
if (complete_at) {
|
if (!this.projectData.cacheParameter.completedTask) {
|
||||||
return false;
|
if (complete_at) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return task_user.find(({userid, owner}) => userid === item.userid && owner);
|
||||||
|
}).length
|
||||||
|
return {
|
||||||
|
value: `user:${userInfo.userid}`,
|
||||||
|
label: `${userInfo.nickname} (${length})`,
|
||||||
|
class: `user-${index}`,
|
||||||
|
userid: userInfo.userid || 0,
|
||||||
|
length,
|
||||||
}
|
}
|
||||||
return task_user.find(({userid, owner}) => userid === item.userid && owner);
|
}).filter(({userid, length}) => userid > 0 && length > 0)
|
||||||
}).length
|
if (userItems.length > 0) {
|
||||||
return {
|
list.push(...userItems)
|
||||||
value: `user:${userInfo.userid}`,
|
|
||||||
label: `${userInfo.nickname} (${length})`,
|
|
||||||
class: `user-${index}`,
|
|
||||||
userid: userInfo.userid || 0,
|
|
||||||
length,
|
|
||||||
}
|
}
|
||||||
}).filter(({userid, length}) => userid > 0 && length > 0)
|
|
||||||
if (userItems.length > 0) {
|
|
||||||
list.push(...userItems)
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
return list
|
return list
|
||||||
|
|||||||
6
resources/assets/js/store/actions.js
vendored
6
resources/assets/js/store/actions.js
vendored
@ -130,7 +130,8 @@ export default {
|
|||||||
}
|
}
|
||||||
if (params.encrypt) {
|
if (params.encrypt) {
|
||||||
const userAgent = window.navigator.userAgent;
|
const userAgent = window.navigator.userAgent;
|
||||||
if (/Windows NT 5.1|Windows XP/.test(userAgent)
|
if (window.systemInfo.debug === "yes"
|
||||||
|
|| /Windows NT 5.1|Windows XP/.test(userAgent)
|
||||||
|| userAgent.indexOf("Windows NT 6.0") !== -1
|
|| userAgent.indexOf("Windows NT 6.0") !== -1
|
||||||
|| userAgent.indexOf("Windows NT 6.1") !== -1
|
|| userAgent.indexOf("Windows NT 6.1") !== -1
|
||||||
|| userAgent.indexOf("Windows NT 6.2") !== -1) {
|
|| userAgent.indexOf("Windows NT 6.2") !== -1) {
|
||||||
@ -3094,6 +3095,9 @@ export default {
|
|||||||
wgLog && console.log("[WS] Open", e, $A.formatDate())
|
wgLog && console.log("[WS] Open", e, $A.formatDate())
|
||||||
state.wsOpenNum++;
|
state.wsOpenNum++;
|
||||||
//
|
//
|
||||||
|
if (window.systemInfo.debug === "yes") {
|
||||||
|
return // 测试环境不发送加密信息
|
||||||
|
}
|
||||||
dispatch("websocketSend", {
|
dispatch("websocketSend", {
|
||||||
type: 'encrypt',
|
type: 'encrypt',
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user