From a5b3efd2727137a0863d2c18214318b1565bdb2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Thu, 25 Jan 2024 14:11:43 +0800 Subject: [PATCH] Doc: update --- README.md | 6 +++++- web/src/pages/Doc/en/introduction/index.md | 6 ++++++ web/src/pages/Doc/en/introduction/index.vue | 6 ++++++ web/src/pages/Doc/en/start/index.md | 6 +++++- web/src/pages/Doc/en/start/index.vue | 2 ++ web/src/pages/Doc/zh/introduction/index.md | 6 ++++++ web/src/pages/Doc/zh/introduction/index.vue | 6 ++++++ web/src/pages/Doc/zh/start/index.md | 6 +++++- web/src/pages/Doc/zh/start/index.vue | 2 ++ 9 files changed, 43 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 27df30e1..58e04050 100644 --- a/README.md +++ b/README.md @@ -258,8 +258,12 @@ const mindMap = new MindMap({ 建明 - + 汪津合 + + + 博文 +

diff --git a/web/src/pages/Doc/en/introduction/index.md b/web/src/pages/Doc/en/introduction/index.md index f5e999b1..da13fef1 100644 --- a/web/src/pages/Doc/en/introduction/index.md +++ b/web/src/pages/Doc/en/introduction/index.md @@ -289,4 +289,10 @@ Open source is not easy. If this project is helpful to you, you can invite the a

汪津合

+ +
+
+ +

博文

+
\ No newline at end of file diff --git a/web/src/pages/Doc/en/introduction/index.vue b/web/src/pages/Doc/en/introduction/index.vue index fe518245..6bf07b60 100644 --- a/web/src/pages/Doc/en/introduction/index.vue +++ b/web/src/pages/Doc/en/introduction/index.vue @@ -245,6 +245,12 @@ full screen, support mini map

汪津合

+ +
+
+ +

博文

+
diff --git a/web/src/pages/Doc/en/start/index.md b/web/src/pages/Doc/en/start/index.md index bbce102d..546d377a 100644 --- a/web/src/pages/Doc/en/start/index.md +++ b/web/src/pages/Doc/en/start/index.md @@ -204,4 +204,8 @@ The following configurations can be added to the packaging configuration file: resolve: { alias: { stream: "stream-browserify" } } ``` -Different packaging tools may have different specific configurations, with the principle of excluding 'stream' dependencies. \ No newline at end of file +Different packaging tools may have different specific configurations, with the principle of excluding 'stream' dependencies. + +### When clicking the [New], [Open], or [Save As] buttons, it will prompt that the browser does not support it or is not using the HTTPS protocol. + +The browser uses API [window.showOpenFilePicker](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker) to operate local files on the computer. If it is not supported, either the browser does not support this API or the page is not using the HTTPS protocol, You can press F12, or open the browser console through the right-click menu on the page and enter 'window.showOpenFilePicker' in the 'Console' tab. If it returns 'undefined', it means it is not supported. If it does not return this message and the page still prompts that the browser does not support it or is not using the HTTPS protocol, you can submit an issue or contact the author. diff --git a/web/src/pages/Doc/en/start/index.vue b/web/src/pages/Doc/en/start/index.vue index de15ea9c..db15852e 100644 --- a/web/src/pages/Doc/en/start/index.vue +++ b/web/src/pages/Doc/en/start/index.vue @@ -138,6 +138,8 @@ module. If you need it, you can try using other libraries to parse xmlresolve: { alias: { stream: "stream-browserify" } }

Different packaging tools may have different specific configurations, with the principle of excluding 'stream' dependencies.

+

When clicking the [New], [Open], or [Save As] buttons, it will prompt that the browser does not support it or is not using the HTTPS protocol.

+

The browser uses API window.showOpenFilePicker to operate local files on the computer. If it is not supported, either the browser does not support this API or the page is not using the HTTPS protocol, You can press F12, or open the browser console through the right-click menu on the page and enter 'window.showOpenFilePicker' in the 'Console' tab. If it returns 'undefined', it means it is not supported. If it does not return this message and the page still prompts that the browser does not support it or is not using the HTTPS protocol, you can submit an issue or contact the author.

diff --git a/web/src/pages/Doc/zh/introduction/index.md b/web/src/pages/Doc/zh/introduction/index.md index bd08d461..d4c1ab1c 100644 --- a/web/src/pages/Doc/zh/introduction/index.md +++ b/web/src/pages/Doc/zh/introduction/index.md @@ -282,4 +282,10 @@

汪津合

+ +
+
+ +

博文

+
\ No newline at end of file diff --git a/web/src/pages/Doc/zh/introduction/index.vue b/web/src/pages/Doc/zh/introduction/index.vue index 2fe63fc9..d9361596 100644 --- a/web/src/pages/Doc/zh/introduction/index.vue +++ b/web/src/pages/Doc/zh/introduction/index.vue @@ -239,6 +239,12 @@

汪津合

+ +
+
+ +

博文

+
diff --git a/web/src/pages/Doc/zh/start/index.md b/web/src/pages/Doc/zh/start/index.md index cbbaf5ec..4694e19c 100644 --- a/web/src/pages/Doc/zh/start/index.md +++ b/web/src/pages/Doc/zh/start/index.md @@ -188,4 +188,8 @@ import MindMap from "simple-mind-map/dist/simpleMindMap.umd.min" resolve: { alias: { stream: "stream-browserify" } } ``` -不同的打包工具可能具体配置不一样,原理就是排除`stream`依赖。 \ No newline at end of file +不同的打包工具可能具体配置不一样,原理就是排除`stream`依赖。 + +### 4.点击【新建】、【打开】、【另存为】按钮时提示浏览器不支持,或者非https协议。 + +浏览器上操作电脑本地文件使用的是[window.showOpenFilePicker](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker)api,如果不支持,要么是浏览器不支持这个API,要么是因为页面非https协议,你可以按F12,或者在页面通过鼠标右键菜单中的【检查】打开浏览器控制台,在其中的【控制台】或【console】tab中输入`window.showOpenFilePicker`按回车,如果返回`undefined`则代表不支持,如果返回的不是这个,而页面依旧提示提示浏览器不支持,或者非https协议,那么可以提交issue,或者联系作者。 \ No newline at end of file diff --git a/web/src/pages/Doc/zh/start/index.vue b/web/src/pages/Doc/zh/start/index.vue index 0442c3c7..5a4b26ee 100644 --- a/web/src/pages/Doc/zh/start/index.vue +++ b/web/src/pages/Doc/zh/start/index.vue @@ -121,6 +121,8 @@ npm run build
resolve: { alias: { stream: "stream-browserify" } }
 

不同的打包工具可能具体配置不一样,原理就是排除stream依赖。

+

4.点击【新建】、【打开】、【另存为】按钮时提示浏览器不支持,或者非https协议。

+

浏览器上操作电脑本地文件使用的是window.showOpenFilePickerapi,如果不支持,要么是浏览器不支持这个API,要么是因为页面非https协议,你可以按F12,或者在页面通过鼠标右键菜单中的【检查】打开浏览器控制台,在其中的【控制台】或【console】tab中输入window.showOpenFilePicker按回车,如果返回undefined则代表不支持,如果返回的不是这个,而页面依旧提示提示浏览器不支持,或者非https协议,那么可以提交issue,或者联系作者。