chore: 流程定义(开发中)

This commit is contained in:
dap
2024-12-11 21:33:59 +08:00
parent 7577f17dd9
commit 97b91aaf7c
7 changed files with 670 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
<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>