src/layout/routerView/iframes.vue
@@ -26,6 +26,7 @@ import { computed, watch, ref, nextTick } from 'vue'; import { useRoute } from 'vue-router'; import AmisPageOptDlg from '/@/views/project/yw/lowCode/sqlAmis/optDlg/OptDlg.vue'; import emitter from '/@/utils/mitt'; // 定义父组件传过来的值 const props = defineProps({ @@ -107,6 +108,12 @@ window.frames[0].openOptAmisPageDlg = () => { amisPageShow.value = true; }; window.frames[0].updatePublished = (id, published) => { emitter.emit('supervisor.publish', { id, published, }); }; }, 0); };