feat(admin): 批量上传创建的分集默认已上线
This commit is contained in:
1 parent
05b977cc33
commit
93e1c1b8c9
1 file changed
+2
-2
@@ -44,7 +44,7 @@ interface EpisodeDraft {
|
||||
error: string
|
||||
}
|
||||
|
||||
const DRAFT_STATUS = 'draft'
|
||||
const PUBLISHED_STATUS = 'published'
|
||||
const rows = ref<EpisodeDraft[]>([])
|
||||
const submitting = ref(false)
|
||||
|
||||
@@ -119,7 +119,7 @@ async function createOne(row: EpisodeDraft): Promise<void> {
|
||||
videoUrl: row.videoUrl,
|
||||
isFree: row.isFree,
|
||||
unlockCoin: row.isFree ? 0 : props.defaultUnlockCoin,
|
||||
status: DRAFT_STATUS
|
||||
status: PUBLISHED_STATUS
|
||||
})
|
||||
row.saved = true
|
||||
row.error = ''
|
||||
|
||||
Reference in new issue
Block a user