Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
95796600
authored
Dec 22, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
8c3c9d5a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
components/message-list.vue
store/index.ts
store/model.ts
components/message-list.vue
View file @
95796600
...
@@ -341,7 +341,7 @@
...
@@ -341,7 +341,7 @@
console
.
log
(
"没有更多新消息了"
);
console
.
log
(
"没有更多新消息了"
);
}
}
const
removingIds
=
[];
const
removingIds
:
number
[]
=
[];
for
(
const
item
of
data
)
{
for
(
const
item
of
data
)
{
if
(
item
.
type
===
MessageType
.
Withdraw
)
{
if
(
item
.
type
===
MessageType
.
Withdraw
)
{
item
.
msg
&&
removingIds
.
push
(...
JSON
.
parse
(
item
.
msg
));
item
.
msg
&&
removingIds
.
push
(...
JSON
.
parse
(
item
.
msg
));
...
...
store/index.ts
View file @
95796600
...
@@ -148,7 +148,7 @@ export default {
...
@@ -148,7 +148,7 @@ export default {
[
ChatStore
.
STATE_MY_CHAT_ROOM_LIST
]:
[],
[
ChatStore
.
STATE_MY_CHAT_ROOM_LIST
]:
[],
[
ChatStore
.
STATE_SINGLE_CHAT
]:
null
,
[
ChatStore
.
STATE_SINGLE_CHAT
]:
null
,
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_VERSION
]:
null
,
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_VERSION
]:
null
,
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
]:
null
,
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
]:
0
,
[
ChatStore
.
STATE_CHAT_MY_ID
]:
null
,
[
ChatStore
.
STATE_CHAT_MY_ID
]:
null
,
[
ChatStore
.
STATE_CHAT_MY_UID
]:
null
,
[
ChatStore
.
STATE_CHAT_MY_UID
]:
null
,
[
ChatStore
.
STATE_CHAT_SOURCE
]:
ServiceType
.
Frontend
,
[
ChatStore
.
STATE_CHAT_SOURCE
]:
ServiceType
.
Frontend
,
...
@@ -183,7 +183,7 @@ export default {
...
@@ -183,7 +183,7 @@ export default {
state
[
ChatStore
.
STATE_CHAT_MSG_HISTORY
]
=
null
;
state
[
ChatStore
.
STATE_CHAT_MSG_HISTORY
]
=
null
;
},
},
[
ChatStore
.
MUTATION_CLEAR_CURRENT_CHAT_ID
](
state
)
{
[
ChatStore
.
MUTATION_CLEAR_CURRENT_CHAT_ID
](
state
)
{
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
]
=
null
;
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
]
=
0
;
},
},
[
ChatStore
.
MUTATION_SAVE_CURRENT_CHAT_ID
](
[
ChatStore
.
MUTATION_SAVE_CURRENT_CHAT_ID
](
state
,
state
,
...
...
store/model.ts
View file @
95796600
...
@@ -31,7 +31,7 @@ export namespace ChatStore {
...
@@ -31,7 +31,7 @@ export namespace ChatStore {
export
type
STATE_CHAT_SENDING_MESSAGE
=
dto
.
Message
;
export
type
STATE_CHAT_SENDING_MESSAGE
=
dto
.
Message
;
export
const
STATE_CHAT_CURRENT_CHAT_ID
=
"当前chat-id"
;
export
const
STATE_CHAT_CURRENT_CHAT_ID
=
"当前chat-id"
;
export
type
STATE_CHAT_CURRENT_CHAT_ID
=
number
|
null
;
export
type
STATE_CHAT_CURRENT_CHAT_ID
=
number
;
export
const
STATE_CHAT_CURRENT_CHAT_VERSION
=
"当前chat的Uniplat version"
;
export
const
STATE_CHAT_CURRENT_CHAT_VERSION
=
"当前chat的Uniplat version"
;
export
type
STATE_CHAT_CURRENT_CHAT_VERSION
=
number
|
null
;
export
type
STATE_CHAT_CURRENT_CHAT_VERSION
=
number
|
null
;
export
const
STATE_CHAT_CURRENT_IS_CHAT_MEMBER
=
"是否是当前chat的成员"
;
export
const
STATE_CHAT_CURRENT_IS_CHAT_MEMBER
=
"是否是当前chat的成员"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment