From fd13b0017518273406ee1a9906c07d079e4a9ac4 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期三, 27 十一月 2024 17:54:52 +0800 Subject: [PATCH] 租户列表 套餐宽度固定180 --- src/views/micro/index.vue | 26 ++++++++++++-------------- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/views/micro/index.vue b/src/views/micro/index.vue index 1a4669c..92b9626 100644 --- a/src/views/micro/index.vue +++ b/src/views/micro/index.vue @@ -1,22 +1,20 @@ <template> <div class="sub-app"> - <WujieVue width="100%" height="100%" :name="name" :url="url" :alive="true" sync /> + <WujieVue width="100%" height="100%" v-bind="computedOptions" :degrade="true" :alive="true" sync /> </div> </template> <script lang="ts" setup> -import hostMap from "@/utils/hostMap"; -import wujieVue from "wujie-vue3"; -const route = useRoute() -const url = hostMap("//localhost:90/") + route.params.path -const name = 'fast' -watch(() => "$route.params.path", - () => { - wujieVue.bus.$emit("vue3-router-change", `/${route.params.path}`); - }, - { - immediate: true - } -) + import WujieVue from "wujie-vue3"; + import { useRoute } from 'vue-router' + import { computed } from 'vue' + + const route = useRoute() + const computedOptions = computed(() => { + return { + name: route.query.key, + url: route.query.url, + } + }) </script> <style scoped lang="scss"> .sub-app { -- Gitblit v1.9.3