fix: 页面测试上下文补齐制作阶段状态
This commit is contained in:
1 parent
90048c0b28
commit
258c511789
1 file changed
+14
-1
@@ -114,11 +114,24 @@ function mountPage(records = [checkpoint()], episodes = 1): ReturnType<typeof us
|
||||
|
||||
episodes: episodes ? [{ episode: 1, title: '第一集', content: '正文' }] : []
|
||||
}
|
||||
const data = ref({ project, checkpoints: records })
|
||||
const data = ref({
|
||||
project,
|
||||
checkpoints: records,
|
||||
stageReadiness: {
|
||||
projectId: project.id,
|
||||
script: { ready: true, reason: null },
|
||||
breakdown: { ready: true, reason: null },
|
||||
visualStyle: { ready: true, reason: null },
|
||||
identity: { ready: true, reason: null },
|
||||
subjectAssets: { ready: true, reason: null },
|
||||
storyboard: { ready: true, reason: null }
|
||||
}
|
||||
})
|
||||
const provided: ReturnType<typeof useProjectData> = {
|
||||
data,
|
||||
project: computed(() => data.value.project),
|
||||
checkpoints: computed(() => data.value.checkpoints),
|
||||
stageReadiness: computed(() => data.value.stageReadiness),
|
||||
loading: ref(false),
|
||||
error: ref(''),
|
||||
updatedAt: ref(''),
|
||||
|
||||
Reference in new issue
Block a user