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
537c76c7
You need to sign in or sign up before continuing.
Commit
537c76c7
authored
Sep 30, 2024
by
Dazzle Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 继续编辑保存草稿失败
parent
c1eaae45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
creation.ts
src/store/types/creation.ts
+1
-0
index.vue
src/views/creation/layout/index.vue
+33
-3
No files found.
src/store/types/creation.ts
View file @
537c76c7
...
@@ -101,6 +101,7 @@ export interface DraftConfig {
...
@@ -101,6 +101,7 @@ export interface DraftConfig {
bgmUrl
:
string
|
null
bgmUrl
:
string
|
null
materialUrl
:
string
|
null
materialUrl
:
string
|
null
pronunciationLanguage
:
LangType
pronunciationLanguage
:
LangType
pageLayout
?:
string
memberId
?:
number
memberId
?:
number
modifiedTime
?:
string
modifiedTime
?:
string
}
}
...
...
src/views/creation/layout/index.vue
View file @
537c76c7
...
@@ -90,10 +90,40 @@ async function getDraft(id: string) {
...
@@ -90,10 +90,40 @@ async function getDraft(id: string) {
async
function
getTaskConfig
(
id
:
string
)
{
async
function
getTaskConfig
(
id
:
string
)
{
const
res
=
await
fetchGetTaskConfig
<
DraftConfig
>
(
id
)
const
res
=
await
fetchGetTaskConfig
<
DraftConfig
>
(
id
)
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
digitalCreationStore
.
updateDigitalCreation
(
{
const
draftConfig
:
DraftConfig
=
{
...
res
.
data
,
id
:
null
,
draftName
:
'新建數字人視頻'
+
formatDateTime
(
new
Date
()),
draftName
:
'新建數字人視頻'
+
formatDateTime
(
new
Date
()),
})
width
:
res
.
data
.
width
||
(
res
.
data
.
pageLayout
===
ScreenType
.
LANDSCAPE
?
1280
:
720
),
height
:
res
.
data
.
height
||
(
res
.
data
.
pageLayout
===
ScreenType
.
LANDSCAPE
?
720
:
1280
),
w
:
res
.
data
.
w
||
(
res
.
data
.
pageLayout
===
ScreenType
.
LANDSCAPE
?
607
:
1080
),
h
:
res
.
data
.
h
||
(
res
.
data
.
pageLayout
===
ScreenType
.
LANDSCAPE
?
1080
:
1920
),
coverUrl
:
res
.
data
.
coverUrl
||
digitalCreationStore
.
coverUrl
,
taskType
:
res
.
data
.
taskType
||
digitalCreationStore
.
taskType
,
inputImageUrl
:
res
.
data
.
inputImageUrl
||
digitalCreationStore
.
inputImageUrl
,
driveType
:
res
.
data
.
driveType
||
digitalCreationStore
.
driveType
,
text
:
res
.
data
.
text
||
digitalCreationStore
.
text
,
person
:
res
.
data
.
person
||
digitalCreationStore
.
person
,
speed
:
res
.
data
.
speed
||
digitalCreationStore
.
speed
,
volume
:
res
.
data
.
volume
||
digitalCreationStore
.
volume
,
pitch
:
res
.
data
.
pitch
||
digitalCreationStore
.
pitch
,
inputAudioUrl
:
res
.
data
.
inputAudioUrl
||
digitalCreationStore
.
inputAudioUrl
,
figureId
:
res
.
data
.
figureId
||
digitalCreationStore
.
figureId
,
cameraId
:
res
.
data
.
cameraId
||
digitalCreationStore
.
cameraId
,
x
:
res
.
data
.
x
||
digitalCreationStore
.
x
,
y
:
res
.
data
.
y
||
digitalCreationStore
.
y
,
subtitlePolicy
:
res
.
data
.
subtitlePolicy
||
digitalCreationStore
.
subtitlePolicy
,
enabled
:
res
.
data
.
enabled
||
digitalCreationStore
.
enabled
,
backgroundImageUrl
:
res
.
data
.
backgroundImageUrl
||
digitalCreationStore
.
backgroundImageUrl
,
autoAnimoji
:
res
.
data
.
autoAnimoji
||
digitalCreationStore
.
autoAnimoji
,
enablePalindrome
:
res
.
data
.
enablePalindrome
||
digitalCreationStore
.
enablePalindrome
,
templateId
:
res
.
data
.
templateId
||
digitalCreationStore
.
templateId
,
title
:
res
.
data
.
title
||
digitalCreationStore
.
title
,
logoUrl
:
res
.
data
.
logoUrl
||
digitalCreationStore
.
logoUrl
,
bgmUrl
:
res
.
data
.
bgmUrl
||
digitalCreationStore
.
bgmUrl
,
materialUrl
:
res
.
data
.
materialUrl
||
digitalCreationStore
.
materialUrl
,
pronunciationLanguage
:
res
.
data
.
pronunciationLanguage
||
digitalCreationStore
.
pronunciationLanguage
,
}
digitalCreationStore
.
updateDigitalCreation
(
draftConfig
)
}
}
}
}
</
script
>
</
script
>
...
...
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