diff --git a/components/Editor/index.d.ts b/components/Editor/index.d.ts index bafc394..44c239c 100644 --- a/components/Editor/index.d.ts +++ b/components/Editor/index.d.ts @@ -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; } diff --git a/hooks/useTable/index.js b/hooks/useTable/index.js index 7d515f7..7ae4b54 100644 --- a/hooks/useTable/index.js +++ b/hooks/useTable/index.js @@ -25,6 +25,7 @@ function getService(service, getExtraParams = {}, transform) { pageSize, ...transformedFormData, ...extraParams, + menuPath: window.location.pathname, }); // 返回数据 return {