From 7369ec8ae7a566698a1ec7dbb0fe5a82f2d9e93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Tue, 6 May 2025 17:35:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(agent):=20=E6=B7=BB=E5=8A=A0=20workflow=20?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 workflow 组件中添加 isLoading 状态 - 在 iframe 加载完成后隐藏 loading - 使用 v-loading 指令显示加载状态 --- src/views/agent/views/workflow/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/agent/views/workflow/index.vue b/src/views/agent/views/workflow/index.vue index f776e0e..9fc53d1 100644 --- a/src/views/agent/views/workflow/index.vue +++ b/src/views/agent/views/workflow/index.vue @@ -10,6 +10,7 @@ export default { }, data() { return { + isLoading: true, worker: { instance: void 0 }, @@ -108,13 +109,16 @@ export default { this.$refs.agent.contentWindow.postMessage('init-iframe', '*', [ this.messageChannel.instance.port1 ]) + // 隐藏 loading + this.isLoading = false } - } + }, + mounted() {} }