From 374d0b9d4aa178aaa3aa5d93ffa483894d8b90a3 Mon Sep 17 00:00:00 2001 From: cdswyda Date: Wed, 10 Nov 2021 11:12:50 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/guide/config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/zh/guide/config.md b/docs/zh/guide/config.md index d770967..97ad353 100644 --- a/docs/zh/guide/config.md +++ b/docs/zh/guide/config.md @@ -723,7 +723,7 @@ Luckysheet开放了更细致的自定义配置选项,分别有 - 类型: `function (file) => Promise(imgUrl)`,接受file对象,返回Promise,值为上传完成的图片url - 默认值: `undefined` -:::deatil 查看示例配置 +:::details 查看示例配置 ```js { @@ -773,7 +773,7 @@ Luckysheet开放了更细致的自定义配置选项,分别有 - 类型: `function (string) => string`,接受原始路径,返回新路径 - 默认值: `undefined` -- 作用,处理图片显示时的路径。 +- 作用,处理图片显示时的路径。 如上传返回地址为接口地址,如: `rest/attach/[fileguid]`, 则需要处理为 `http://localhost:8080/xxx/rest/attach/[fileguid]` 才能显示,但将前面域名信息写入数据,后续使用可能会有问题,因此可使用此方法处理路径,全路径仅在展示使用,数据内仅存储 `rest/attach/[fileguid]` ```js