fix: 修复管理端前端类型校验问题

- 修正知识库与 Bot 设置页相关组件的类型定义和空值处理

- 补齐工作流与公开聊天页的前端类型约束和动态导入类型

- 收敛本次改动文件的局部格式与样式规范,确保 pnpm check:type 通过
This commit is contained in:
2026-04-05 20:36:25 +08:00
parent b5dd427920
commit bb72e19c84
15 changed files with 361 additions and 244 deletions

View File

@@ -172,12 +172,14 @@ const scrollToBottom = (force = false) => {
});
};
const buildRequestHeaders = (token = requestAccessToken.value) =>
const buildRequestHeaders = (
token = requestAccessToken.value,
): Record<string, string> | undefined =>
token
? {
'easyflow-token': token,
}
: {};
: undefined;
const getResponseBody = async <T,>(request: Promise<any>) => {
const response = await request;