提交 | 用户 | 时间
|
e7305d
|
1 |
<template> |
H |
2 |
<div class="sub-app"> |
94d91d
|
3 |
<WujieVue width="100%" height="100%" v-bind="computedOptions" :degrade="true" :alive="true" sync /> |
e7305d
|
4 |
</div> |
H |
5 |
</template> |
|
6 |
<script lang="ts" setup> |
94d91d
|
7 |
import WujieVue from "wujie-vue3"; |
H |
8 |
import { useRoute } from 'vue-router' |
|
9 |
import { computed } from 'vue' |
|
10 |
|
|
11 |
const route = useRoute() |
|
12 |
const computedOptions = computed(() => { |
|
13 |
return { |
|
14 |
name: route.query.key, |
|
15 |
url: route.query.url, |
|
16 |
} |
|
17 |
}) |
e7305d
|
18 |
</script> |
H |
19 |
<style scoped lang="scss"> |
|
20 |
.sub-app { |
|
21 |
height: 100%; |
|
22 |
width: 100%; |
|
23 |
.wujie_iframe { |
|
24 |
height: 100%; |
|
25 |
} |
|
26 |
} |
|
27 |
</style> |