From 2259a61fa1779d91e8a3130a9b852fc4f2408179 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 25 Mar 2025 17:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=BC=96=E6=8E=92=E6=97=B6=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ComposerEditor.vue | 48 ++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/src/components/ComposerEditor.vue b/src/components/ComposerEditor.vue index 4d8c771..938d22a 100644 --- a/src/components/ComposerEditor.vue +++ b/src/components/ComposerEditor.vue @@ -6,6 +6,37 @@ :disabled-control-buttons="disabledControlButtons" class="fixed-full" /> + + +
+
👏🏻 欢迎使用可视化编排
+
由于编排功能众多,推荐先查看教程再使用
+
+ + 完整教程 + +
+
+ + 快速入门:浏览器控制典型案例 + +
+
+
你随时可以点击右上角的
+ +
帮助按钮,再次查看教程
+
+
+
+ +
+
+
@@ -15,22 +46,15 @@ import CommandComposer from "components/composer/CommandComposer.vue"; import CommandRunResult from "components/CommandRunResult"; import { useCommandManager } from "js/commandManager.js"; import { dbManager } from "js/utools"; +import { ref } from "vue"; export default { components: { CommandComposer, CommandRunResult }, setup() { const hasRunComposer = dbManager.getStorage("st_hasRunComposer"); - + const showHelpDialog = ref(false); if (!hasRunComposer) { - quickcommand.showConfirmBox( - `
👏🏻 欢迎使用可视化编排,由于编排功能众多,推荐先查看教程再使用
-
查看教程戳我
-
或者看一个浏览器控制典型案例快速入门
-
你随时可以点击右上角的帮助按钮(图标为问号),再次查看教程
`, - "帮助", - true, - 600 - ); + showHelpDialog.value = true; dbManager.setStorage("st_hasRunComposer", true); } @@ -47,6 +71,7 @@ export default { return { commandManager, + showHelpDialog, }; }, emits: ["editorEvent"], @@ -76,6 +101,9 @@ export default { runCurrentCommand(command) { this.$refs.result.runCurrentCommand(command); }, + showHelp(id) { + window.showUb.help(id); + }, }, };