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
af13dd9c
Commit
af13dd9c
authored
Oct 08, 2024
by
Dazzle Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 视频数字人保存草稿
parent
245f50d5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
creation.ts
src/store/modules/creation.ts
+1
-1
digital-position.vue
src/views/creation/components/digital/digital-position.vue
+4
-4
header-bar.vue
src/views/creation/layout/header-bar.vue
+1
-1
card-navigator.vue
src/views/workbench/components/card-navigator.vue
+1
-0
No files found.
src/store/modules/creation.ts
View file @
af13dd9c
...
...
@@ -114,7 +114,7 @@ export const useDigitalCreationStore = defineStore('digital-creation-store', {
this
.
enabled
=
subtitleEnabled
},
updateDigitalCreation
(
digitalCreation
:
DraftConfig
)
{
updateDigitalCreation
(
digitalCreation
:
Partial
<
DraftConfig
>
)
{
this
.
$state
=
{
...
this
.
$state
,
...
digitalCreation
}
},
...
...
src/views/creation/components/digital/digital-position.vue
View file @
af13dd9c
...
...
@@ -57,15 +57,15 @@ const digitalImagePositionH = computed({
</n-input-number>
</div>
<div
class=
"mt-4 flex"
>
<n-input
-number
v-model:value=
"digitalImagePositionW"
class=
"flex-1"
>
<n-input
v-model:value=
"digitalImagePositionW"
readonly
class=
"flex-1"
>
<
template
#
prefix
><div
class=
"text-gray w-4 text-center text-xs"
>
W
</div></
template
>
</n-input
-number
>
</n-input>
<div
class=
"flex w-4 items-center justify-center"
>
<CustomIcon
class=
"text-gray text-xs"
icon=
"fa6-solid:lock"
/>
</div>
<n-input
-number
v-model:value=
"digitalImagePositionH"
class=
"flex-1"
>
<n-input
v-model:value=
"digitalImagePositionH"
readonly
class=
"flex-1"
>
<
template
#
prefix
><div
class=
"text-gray w-4 text-center text-xs"
>
H
</div></
template
>
</n-input
-number
>
</n-input>
</div>
</div>
</template>
src/views/creation/layout/header-bar.vue
View file @
af13dd9c
...
...
@@ -106,7 +106,7 @@ async function saveDraft(autoSave: boolean = true) {
const
res
=
await
saveDraftConfig
<
DraftConfig
>
(
payload
)
if
(
res
.
code
===
0
)
{
autoSave
?
(
autoSaveSuccess
.
value
=
true
)
:
window
.
$message
.
success
(
'保存成功'
)
// digitalCreationStore.updateDigitalCreation(res.data
)
digitalCreationStore
.
updateDigitalCreation
({
id
:
res
.
data
.
id
}
)
const
temp
:
DraftConfig
=
{
...
res
.
data
,
modifiedTime
:
''
}
savedConfig
.
value
=
temp
}
...
...
src/views/workbench/components/card-navigator.vue
View file @
af13dd9c
...
...
@@ -58,6 +58,7 @@ async function handleCreateDigitalHumanVideo(digitalHumanVideoForm: DigitalHuman
payload
.
draftName
=
digitalHumanVideoForm
.
title
payload
.
width
=
digitalHumanVideoForm
.
pageLayout
===
ScreenType
.
PORTRAIT
?
1080
:
1920
payload
.
height
=
digitalHumanVideoForm
.
pageLayout
===
ScreenType
.
PORTRAIT
?
1920
:
1080
payload
.
figureId
=
digitalHumanVideoForm
.
pageLayout
===
ScreenType
.
PORTRAIT
?
'A2A_V2-gaoming'
:
'A2A_V2-3to2_xinyi'
payload
.
inputImageUrl
=
digitalHumanVideoForm
.
pageLayout
===
ScreenType
.
PORTRAIT
?
'https://demand-ai-sit.gz.bcebos.com/data/20240913/1726223058345.png'
...
...
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