refactor: 页面提示改为用户可理解的制作文案

This commit is contained in:
GouJ committed 2026-09-26 21:12:06 +08:00
1 parent 67fa09fd97
commit 53fc3dde42
1 file changed
+3 -3
@@ -49,7 +49,7 @@ async function writeStyle(label: string, action: (id: string) => Promise<VisualS
const id = projectId.value
const ok = await runOperation(id, label, async () => {
const result = await action(id)
if (!result) throw new Error('后端未返回已保存的视觉风格,请刷新核对。')
if (!result) throw new Error('视觉风格保存结果未确认,请刷新后核对。')
assertProject(result, id)
if (projectId.value === id) {
query.data.value = { style: result }
@@ -79,7 +79,7 @@ async function writeImage(label: string, action: (id: string) => Promise<VisualS
const styleId = style.value.id
const ok = await runOperation(id, label, async () => {
const result = await action(id)
if (!result || result.visualStyleId !== styleId) throw new Error('后端未确认风格图片变更,请刷新核对。')
if (!result || result.visualStyleId !== styleId) throw new Error('风格参考图变更结果未确认,请刷新后核对。')
})
if (ok && reset && projectId.value === id) imageRevision.value++
await query.refresh()
@@ -136,7 +136,7 @@ function removeImage(image: VisualStyleImage) {
</div>
</template>
<NAlert v-if="query.error.value" role="alert" type="error" :show-icon="false" class="mb-4"
>{{ query.error.value }} 请确认后端 dev 已更新并重启;查询失败不等同于尚未创建。
>{{ query.error.value }} 当前内容读取失败,请刷新后重试;已有内容不会被覆盖。
</NAlert>
<p v-if="dirty" class="mb-4 text-xs text-muted">
有未保存修改,AI 重生成暂不可用。刷新不会覆盖编辑内容;离开页面不会自动保存。