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
bf2821e5
authored
Oct 28, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
eslint
parent
aa81303d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
components/chat-room.vue
store/index.ts
components/chat-room.vue
View file @
bf2821e5
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
private
readonly
isChatMember
!
:
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_MEMBER
;
private
readonly
isChatMember
!
:
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_MEMBER
;
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
)
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
)
private
readonly
chatError
:
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
;
private
readonly
chatError
!
:
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
;
private
get
hasInput
()
{
private
get
hasInput
()
{
return
this
.
isChatMember
&&
this
.
chatError
!==
this
.
chatId
;
return
this
.
isChatMember
&&
this
.
chatError
!==
this
.
chatId
;
...
...
store/index.ts
View file @
bf2821e5
...
@@ -684,7 +684,7 @@ export default {
...
@@ -684,7 +684,7 @@ export default {
);
);
commit
(
ChatStore
.
MUTATION_INITING_CHAT_DONE
);
commit
(
ChatStore
.
MUTATION_INITING_CHAT_DONE
);
commit
(
ChatStore
.
MUTATION_SCROLL_TO_BOTTOM
);
commit
(
ChatStore
.
MUTATION_SCROLL_TO_BOTTOM
);
state
[
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
]
=
null
;
(
<
any
>
state
)
[
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
]
=
null
;
},
},
async
[
ChatStore
.
ACTION_CLEAR_CURRENT_CHAT_DATA
]({
commit
,
state
})
{
async
[
ChatStore
.
ACTION_CLEAR_CURRENT_CHAT_DATA
]({
commit
,
state
})
{
commit
(
ChatStore
.
MUTATION_CLEAR_CURRENT_CHAT_ID
);
commit
(
ChatStore
.
MUTATION_CLEAR_CURRENT_CHAT_ID
);
...
@@ -692,7 +692,7 @@ export default {
...
@@ -692,7 +692,7 @@ export default {
commit
(
ChatStore
.
MUTATION_CLEAR_CHAT_MSG_HISTORY
);
commit
(
ChatStore
.
MUTATION_CLEAR_CHAT_MSG_HISTORY
);
commit
(
ChatStore
.
MUTATION_CLEAR_CHAT_TITLE
);
commit
(
ChatStore
.
MUTATION_CLEAR_CHAT_TITLE
);
commit
(
ChatStore
.
MUTATION_CLEAR_CURRENT_CHAT_MEMBERS
);
commit
(
ChatStore
.
MUTATION_CLEAR_CURRENT_CHAT_MEMBERS
);
state
[
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
]
=
null
;
(
<
any
>
state
)
[
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
]
=
null
;
},
},
async
[
ChatStore
.
ACTION_GET_CHAT_MEMBERS
]({
commit
,
state
})
{
async
[
ChatStore
.
ACTION_GET_CHAT_MEMBERS
]({
commit
,
state
})
{
const
chatId
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
];
const
chatId
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
];
...
@@ -920,7 +920,7 @@ export default {
...
@@ -920,7 +920,7 @@ export default {
.
finally
(()
=>
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
));
.
finally
(()
=>
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
));
},
},
[
ChatStore
.
ACTION_SET_CHAT_ERROR
]:
({
state
},
chat
:
number
)
=>
{
[
ChatStore
.
ACTION_SET_CHAT_ERROR
]:
({
state
},
chat
:
number
)
=>
{
state
[
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
]
=
chat
;
(
<
any
>
state
)
[
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_ERROR
]
=
chat
;
},
},
},
},
getters
:
{
getters
:
{
...
...
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