update 调整设计器uri

This commit is contained in:
gssong 2024-11-16 00:46:03 +08:00
parent 090b22295c
commit 160762b1b3

View File

@ -11,6 +11,7 @@ import { onMounted } from 'vue';
// disabled,
const iframeUrl = ref('');
const baseUrl = import.meta.env.VITE_APP_BASE_API;
import { getToken } from '@/utils/auth';
const iframeLoaded = () => {
// iframe
window.onmessage = (event) => {
@ -22,7 +23,8 @@ const iframeLoaded = () => {
};
};
const open = async (definitionId) => {
iframeUrl.value = baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=false`;
let url = baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=false&Authorization=${getToken}`;
iframeUrl.value = url + '&Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID;
};
/** 关闭按钮 */
function close() {