提交 | 用户 | 时间
|
e7305d
|
1 |
<template> |
H |
2 |
<div class="sub-app"> |
|
3 |
<WujieVue width="100%" height="100%" :name="name" :url="url" :alive="true" sync /> |
|
4 |
</div> |
|
5 |
</template> |
|
6 |
<script lang="ts" setup> |
effbd8
|
7 |
import hostMap from "@/utils/hostMap"; |
H |
8 |
import wujieVue from "wujie-vue3"; |
|
9 |
const route = useRoute() |
|
10 |
const url = hostMap("//localhost:90/") + route.params.path |
|
11 |
const name = 'fast' |
|
12 |
watch(() => "$route.params.path", |
|
13 |
() => { |
|
14 |
wujieVue.bus.$emit("vue3-router-change", `/${route.params.path}`); |
|
15 |
}, |
|
16 |
{ |
|
17 |
immediate: true |
|
18 |
} |
|
19 |
) |
e7305d
|
20 |
</script> |
H |
21 |
<style scoped lang="scss"> |
|
22 |
.sub-app { |
|
23 |
height: 100%; |
|
24 |
width: 100%; |
|
25 |
.wujie_iframe { |
|
26 |
height: 100%; |
|
27 |
} |
|
28 |
} |
|
29 |
</style> |