mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 10:56:50 +08:00
feat(agent): 添加 workflow 加载状态
- 在 workflow 组件中添加 isLoading 状态 - 在 iframe 加载完成后隐藏 loading - 使用 v-loading 指令显示加载状态
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="render-container">
|
||||
<div class="render-container" v-loading="isLoading">
|
||||
<iframe
|
||||
@load="handleAgentLoad"
|
||||
ref="agent"
|
||||
|
||||
Reference in New Issue
Block a user