From 05983213685bb1df737739ae5204fa815b4fbc59 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Sat, 6 Dec 2025 16:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Editor=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20useTable=E5=A2=9E=E5=8A=A0=E5=85=A8?= =?UTF-8?q?=E5=B1=80menuPath=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Editor/index.d.ts | 4 ++-- hooks/useTable/index.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 {