修复图片编辑器生图登录提示

调整编辑器 API 鉴权策略,允许通过 refresh cookie 静默补 access token

真实生图遇到未授权时显示登录提示,不再直接暴露 requestId

补充编辑器组件和客户端测试,并更新方案文档与跟踪记录
This commit is contained in:
2026-06-13 17:48:21 +08:00
parent 96c36f0b50
commit 3f4dba97ba
6 changed files with 68 additions and 13 deletions

View File

@@ -5,7 +5,8 @@ const EDITOR_IMAGE_GENERATION_API = '/api/editor/images/generations';
const EDITOR_IMAGE_EDIT_API = '/api/editor/images/edits';
const DEFAULT_PROJECT_TITLE = '未命名画布';
const EDITOR_PROJECT_REQUEST_OPTIONS = {
authImpact: 'local' as const,
clearAuthOnUnauthorized: false,
notifyAuthStateChange: false,
};
export type EditorCanvasViewport = {