fix: 修复管理端前端类型校验问题
- 修正知识库与 Bot 设置页相关组件的类型定义和空值处理 - 补齐工作流与公开聊天页的前端类型约束和动态导入类型 - 收敛本次改动文件的局部格式与样式规范,确保 pnpm check:type 通过
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user