bug
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user