You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
540 B
Plaintext
18 lines
540 B
Plaintext
<template>
|
|
<iframe :src="url" width="100%" height="100%" style="border: 0"></iframe>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue';
|
|
import { useRoute } from 'vue-router';
|
|
|
|
const route = useRoute();
|
|
const url = ref('');
|
|
const InitPage = () => {
|
|
console.log('参数:',route.path);
|
|
if(route.path.includes('FlowTree'))
|
|
url.value = 'http://localhost:3000/#/WF/Port?DoWhat=Flows';
|
|
else if(route.path.includes('FormTree'))
|
|
url.value = 'http://localhost:3000/#/WF/Port?DoWhat=Frms'
|
|
}
|
|
InitPage();
|
|
</script> |