wujingjing
2024-09-14 2b74f9e5d2da522bc8b44f4b3d499a059f8a59ce
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);
};