diff --git a/src/api/newChat.js b/src/api/newChat.js index 3e7f3ca06..bdcc96501 100644 --- a/src/api/newChat.js +++ b/src/api/newChat.js @@ -172,3 +172,18 @@ export function sendBase64(groupId, data) { data }); } + +/** + * 设置群消息已读 + * @param {String} groupId 房间号 + * @param {Object} data + * @param {Number} data.id 群组id + * @returns + */ +export function setGroupReadMessage(groupId, data) { + return request({ + url: `/simulation/${groupId}/operate/Conversation_Group_Read_Message`, + method: 'post', + data + }); +} diff --git a/src/permission.js b/src/permission.js index af8fef76d..b0dff606c 100644 --- a/src/permission.js +++ b/src/permission.js @@ -14,7 +14,7 @@ const whiteList = ['/login', '/design/login', '/loginNew', '/gzzbxy/relay', '/au function getRouteInfo(to) { let loginPath = ''; const markKey = store.state.projectConfig.markKey || getSessionStorage('project'); - loginPath = markKey == 'login' ? '/login' : '/login?project=' + markKey; + loginPath = !markKey || markKey == 'login' ? '/login' : '/login?project=' + markKey; if (to.query.projectDevice && to.query.type && loginPath.includes('?')) { loginPath = `${loginPath}&projectDevice=${to.query.projectDevice}&type=${to.query.type}`; } else if (to.query.projectDevice && to.query.type) { diff --git a/src/views/newMap/display/newChat/chatDialog.vue b/src/views/newMap/display/newChat/chatDialog.vue index d82ba53bf..28c50ad1d 100644 --- a/src/views/newMap/display/newChat/chatDialog.vue +++ b/src/views/newMap/display/newChat/chatDialog.vue @@ -33,16 +33,19 @@
-
+
-
+
+ +
+
-
{{ item.name }}
+
{{ getGroupName(item) }}
{{ getLastMsg(item.messageList) }}
@@ -53,12 +56,6 @@
-
@@ -66,13 +63,13 @@
工作台
通讯录
- +