优化Editor组件类型

useTable增加全局menuPath参数
master
LiuJiaNan 2025-12-06 16:49:16 +08:00
parent 71f11d55c9
commit 0598321368
2 changed files with 3 additions and 2 deletions

View File

@ -3,9 +3,9 @@ import type { ForwardRefExoticComponent, RefAttributes } from "react";
export interface EditorProps {
/** 编辑器内容值 */
value: string;
value?: string;
/** 内容改变回调 */
onChange: (html: string) => void;
onChange?: (html: string) => void;
/** 是否禁用 */
disabled?: boolean;
}

View File

@ -25,6 +25,7 @@ function getService(service, getExtraParams = {}, transform) {
pageSize,
...transformedFormData,
...extraParams,
menuPath: window.location.pathname,
});
// 返回数据
return {