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); + }, }, };