mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no message
This commit is contained in:
parent
4ef5deac69
commit
42031982a3
@ -66,7 +66,7 @@ export default {
|
||||
audio.controls = false;
|
||||
audio.loop = false;
|
||||
audio.volume = 1;
|
||||
if (/\d+/.test(msg)) {
|
||||
if (/^\d+$/.test(msg)) {
|
||||
msg = msg == this.audioId
|
||||
}
|
||||
if (typeof msg === "boolean") {
|
||||
|
||||
@ -180,7 +180,7 @@ export default {
|
||||
onAdd(data) {
|
||||
data = $A.isJson(data) ? data : {};
|
||||
// 获取会话成员
|
||||
if (/\d+/.test(data.dialog_id)) {
|
||||
if (/^\d+$/.test(data.dialog_id)) {
|
||||
this.loadIng++;
|
||||
this.$store.dispatch("call", {
|
||||
url: 'dialog/user',
|
||||
|
||||
@ -184,7 +184,7 @@ export default {
|
||||
let userids = $A.isArray(record.userid) ? record.userid : [record.userid]
|
||||
let userNode = [];
|
||||
userids.some(userid => {
|
||||
if (/\d+/.test(userid)) {
|
||||
if (/^\d+$/.test(userid)) {
|
||||
userNode.push(h('UserAvatar', {
|
||||
props: {
|
||||
size: 18,
|
||||
|
||||
@ -1433,7 +1433,7 @@ export default {
|
||||
|
||||
onBack() {
|
||||
const {name, params} = this.$store.state.routeHistoryLast;
|
||||
if (name === this.$route.name && /\d+/.test(params.projectId)) {
|
||||
if (name === this.$route.name && /^\d+$/.test(params.projectId)) {
|
||||
this.goForward({name: this.$route.name, params: {projectId: 'all'}});
|
||||
} else {
|
||||
this.goBack();
|
||||
|
||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -2225,7 +2225,7 @@ export default {
|
||||
return
|
||||
}
|
||||
// 关闭会话后只保留会话最后50条数据
|
||||
const retain = 5
|
||||
const retain = 50
|
||||
const msgs = state.dialogMsgs.filter(item => item.dialog_id == dialog_id)
|
||||
if (msgs.length > retain) {
|
||||
const delIds = msgs.sort((a, b) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user