26 lines
657 B
Vue
26 lines
657 B
Vue
![]() |
<script setup lang="ts">
|
||
|
import { useRoute } from 'vue-router';
|
||
|
|
||
|
import { stringify } from '@vben/request';
|
||
|
import { useAccessStore } from '@vben/stores';
|
||
|
|
||
|
defineOptions({ name: 'FlowDesigner' });
|
||
|
|
||
|
const route = useRoute();
|
||
|
const definitionId = route.query.definitionId as string;
|
||
|
const disabled = route.query.disabled === 'true';
|
||
|
|
||
|
const accessStore = useAccessStore();
|
||
|
const params = {
|
||
|
Authorization: `Bearer ${accessStore.accessToken}`,
|
||
|
id: definitionId,
|
||
|
disabled,
|
||
|
};
|
||
|
|
||
|
const url = `${import.meta.env.VITE_GLOB_API_URL}/warm-flow-ui/index.html?${stringify(params)}`;
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<iframe :src="url" class="size-full"></iframe>
|
||
|
</template>
|