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
e0c98b1e
authored
Aug 02, 2021
by
吴云建
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
会话tab切页信息更新
parent
383d54c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
chat.vue
chat.vue
View file @
e0c98b1e
...
...
@@ -6,7 +6,7 @@
<chat-room
/>
</div>
<div
class=
"chat-panel pos-rel"
v-if=
"!userMode"
>
<el-tabs
class=
"chat-panel-tabs h-100"
v-model=
"currentTab"
v-if=
"currentChat"
>
<el-tabs
class=
"chat-panel-tabs h-100"
v-model=
"currentTab"
v-if=
"currentChat
&& !refreshFlag
"
>
<el-tab-pane
label=
"数据"
name=
"one"
class=
"h-100"
>
<ModelDetail
:model_name=
"currentChat.business_data.model_name"
...
...
@@ -48,7 +48,7 @@
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Component
,
Vue
,
Watch
}
from
"vue-property-decorator"
;
import
remarkList
from
"../components/common/remarkList.vue"
;
import
ChatMembers
from
"./components/chat-members.vue"
;
import
ChatRoom
from
"./components/chat-room.vue"
;
...
...
@@ -96,7 +96,7 @@ export default class Chat extends Vue {
private
readonly
_addMember
!
:
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
;
private
userMode
=
false
;
private
refreshFlag
=
false
;
private
currentTab
=
"one"
;
private
shortCutMsgs
=
[
"快捷回复1"
,
"快捷回复2"
,
"快捷回复3"
,
"快捷回复4"
];
...
...
@@ -109,6 +109,13 @@ export default class Chat extends Vue {
private
terminate
()
{
this
.
_terminate
();
}
@
Watch
(
"chatId"
)
chatIdUpdate
()
{
this
.
refreshFlag
=
true
;
this
.
$nextTick
(()
=>
{
this
.
refreshFlag
=
false
;
})
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
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