Browse Source

Merge remote-tracking branch 'origin/master'

master
修宁 5 months ago
parent
commit
cf5aad9a59
  1. 8
      src/editor/ModelMain.vue
  2. 21
      src/views/taskManagement/automatedPresentation.vue

8
src/editor/ModelMain.vue

@ -72,7 +72,7 @@
<CatalogDefine />
</el-tab-pane>
<el-tab-pane label="小凯AI" name="ModelDataSet" lazy>
<el-empty description="暂无数据" />
<iframe class="galaxis-ai" style="width: 100%;height: 100%;border: none;" src="http://localhost:5906/#/chat"></iframe>
</el-tab-pane>
</el-tabs>
</SplitArea>
@ -175,9 +175,12 @@ export default {
}
this.editorHash += 1 //
})
window.addEventListener('message', this.mes)
},
unmounted() {
ModelMainUnmounted()
window.removeEventListener('message', this.mes)
},
data() {
return {
@ -253,6 +256,9 @@ export default {
methods: {
renderIcon,
getWidgetBySide,
mes(event) {
console.log('data', event.data);
},
toHome() {
system.router.push({ name: 'home' })
},

21
src/views/taskManagement/automatedPresentation.vue

@ -1,12 +1,21 @@
<template>
<div class="modeling-simulation">
automatedPresentation.vue
</div>
<div class="modeling-simulation">
<iframe class="galaxis-ai" style="width: 100%;height: 100%;border: none;" src="http://localhost:5906/#/chat"></iframe>
</div>
</template>
<script setup>
<script setup lang="ts">
import { onMounted, onUnmounted } from "vue";
function mes(event: MessageEvent) {
console.log('data', event.data);
}
onMounted(() => window.addEventListener('message', mes));
onUnmounted(() => window.removeEventListener('message', mes));
</script>
<style lang="less">
.dashboard{
.modeling-simulation {
width: 100%;
height: 100%;
}
</style>

Loading…
Cancel
Save