fix(short-drama-agent-front): 修复代码格式检查问题

This commit is contained in:
GJ committed 2026-10-21 17:04:02 +08:00
1 parent 81d6a85260
commit 48fce3975f
87 files changed
+5714 -1436

No files matched your search

@@ -149,7 +149,12 @@ const confirmationDescription = computed(
<!-- 以下是项目配置缺失的恢复入口,保存后仍须重新检查制作条件。 -->
<div v-if="configurationRequired" class="mt-3 flex flex-wrap items-center gap-3">
<span class="text-xs text-muted">请先保存项目生成配置,再重新检查制作条件。</span>
<NButton v-if="openProjectSettings" class="workspace-action-button" :disabled="operation.pending" @click="openProjectSettings">
<NButton
v-if="openProjectSettings"
class="workspace-action-button"
:disabled="operation.pending"
@click="openProjectSettings"
>
<template #icon><Settings2 :size="15" aria-hidden="true" /></template>前往项目配置
</NButton>
</div>
@@ -166,7 +171,7 @@ const confirmationDescription = computed(
<!-- 以下是失败任务真实结果详情模块。 -->
<NCollapse v-if="failedResult" class="mt-3 text-xs">
<NCollapseItem name="failed-result" title="失败任务结果详情">
<pre class="mt-2 whitespace-pre-wrap break-all">{{ JSON.stringify(failedResult, null, 2) }}</pre>
<pre class="mt-2 whitespace-pre-wrap break-all">{{ JSON.stringify(failedResult, null, 2) }}</pre>
</NCollapseItem>
</NCollapse>
<FeedbackMessage v-if="error" :message="error" />
@@ -221,7 +221,7 @@ const records = computed(() =>
<!-- 以下是原始校验结果的 Naive 折叠模块 -->
<NCollapse class="mt-2 text-muted">
<NCollapseItem name="raw-record" title="原始记录">
<pre class="whitespace-pre-wrap wrap-anywhere">{{ JSON.stringify(record.output, null, 2) }}</pre>
<pre class="whitespace-pre-wrap wrap-anywhere">{{ JSON.stringify(record.output, null, 2) }}</pre>
</NCollapseItem>
</NCollapse>
</article>
@@ -63,7 +63,11 @@ export async function checkPipeline(projectId: string, scope: ProductionStartInp
if (entry.ready !== true) throw new Error(entry.reason || '请先完成正式分镜检查与人工审核,再进入制作计划。')
const project = await projectsApi.detail(projectId)
if (project.id !== projectId) throw new Error('预检返回了其他项目的数据,请重新读取。')
await assertCurrentStoryboardDesigns(projectId, project.episodes.map(item => item.episode), entry.derivedAssets.shotCount)
await assertCurrentStoryboardDesigns(
projectId,
project.episodes.map(item => item.episode),
entry.derivedAssets.shotCount
)
const profile = await generationConfigApi.profile(projectId)
if (!profile) throw new ProductionConfigurationRequiredError()
const providers = {
@@ -255,7 +259,12 @@ export function useAdvancedProduction() {
let submitted = false
await runOperation(projectId, '高级串联生产', async () => {
const result = await checkPipeline(projectId, scope.value).catch(cause => {
if (!disposed && id.value === projectId && confirmedVersion === version && cause instanceof ProductionConfigurationRequiredError) {
if (
!disposed &&
id.value === projectId &&
confirmedVersion === version &&
cause instanceof ProductionConfigurationRequiredError
) {
check.value = null
configurationRequired.value = true
}