This commit is contained in:
Teo
2025-07-26 11:49:39 +08:00
parent d503e64098
commit dd9b5da394
9 changed files with 416 additions and 9 deletions

View File

@ -15,6 +15,8 @@ const iframeUrl = ref('');
const baseUrl = import.meta.env.VITE_APP_BASE_API;
const iframeLoaded = () => {
// iframe监听组件内设计器保存事件
console.log(111);
window.onmessage = (event) => {
switch (event.data.method) {
case 'close':
@ -25,8 +27,9 @@ const iframeLoaded = () => {
};
//baseUrl +
const open = async (definitionId, disabled) => {
const url = `/warm-flow-ui/index.html?id=${definitionId}&disabled=${disabled}`;
const url = baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=${disabled}`;
iframeUrl.value = url + '&Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID;
console.log('🚀 ~ open ~ iframeUrl:', iframeUrl.value);
};
/** 关闭按钮 */
function close() {