Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
digitalPerson
digitalPerson-fe
Commits
f884cfe2
Commit
f884cfe2
authored
Oct 09, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 弹窗清空内容后再次打开没有默认数据
parent
0f7b49c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
create-digital-human-dialogue-modal.vue
...detail/components/create-digital-human-dialogue-modal.vue
+11
-1
edit-digital-human-dialogue-modal.vue
...gue-list/components/edit-digital-human-dialogue-modal.vue
+3
-3
create-copy-draft-modal.vue
src/views/draft/components/create-copy-draft-modal.vue
+3
-3
No files found.
src/views/dialogue-detail/components/create-digital-human-dialogue-modal.vue
View file @
f884cfe2
<
script
setup
lang=
"ts"
>
import
{
computed
,
reactive
,
ref
}
from
'vue'
import
{
computed
,
reactive
,
ref
,
watch
}
from
'vue'
import
{
FormInst
}
from
'naive-ui'
import
CustomModal
from
'@/components/custom-modal/custom-modal.vue'
import
CustomIcon
from
'@/components/custom-icon/custom-icon.vue'
...
...
@@ -50,6 +50,16 @@ const showModal = computed({
},
})
watch
(
()
=>
showModal
.
value
,
(
newValue
)
=>
{
if
(
newValue
)
{
digitalHumanDialogueFormData
.
title
=
'新建對話'
+
formatDateTime
(
new
Date
())
digitalHumanDialogueFormData
.
pageLayout
=
'vertical'
}
},
)
function
handleUpdatePageLayout
(
pageLayout
:
'vertical'
|
'horizontal'
)
{
digitalHumanDialogueFormData
.
pageLayout
=
pageLayout
}
...
...
src/views/dialogue-list/components/edit-digital-human-dialogue-modal.vue
View file @
f884cfe2
...
...
@@ -39,9 +39,9 @@ const showModal = computed({
})
watch
(
()
=>
props
.
configTitl
e
,
(
newValue
)
=>
{
digitalHumanDialogueFormData
.
title
=
(
newValu
e
+
'副本'
).
slice
(
0
,
30
)
()
=>
showModal
.
valu
e
,
()
=>
{
digitalHumanDialogueFormData
.
title
=
(
props
.
configTitl
e
+
'副本'
).
slice
(
0
,
30
)
},
)
...
...
src/views/draft/components/create-copy-draft-modal.vue
View file @
f884cfe2
...
...
@@ -39,9 +39,9 @@ const showModal = computed({
})
watch
(
()
=>
props
.
draftNam
e
,
(
newValue
)
=>
{
digitalHumanDraftFormData
.
draftName
=
(
newValu
e
+
'副本'
).
slice
(
0
,
30
)
()
=>
showModal
.
valu
e
,
()
=>
{
digitalHumanDraftFormData
.
draftName
=
(
props
.
draftNam
e
+
'副本'
).
slice
(
0
,
30
)
},
)
...
...
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