From 932c3ab49ea4e911fb2c2531c29d6609ac5afefd Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期四, 02 一月 2025 10:51:37 +0800 Subject: [PATCH] itemchart bug修复。 页面优化 --- src/views/micro/index.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/micro/index.vue b/src/views/micro/index.vue index 3de28f4..92b9626 100644 --- a/src/views/micro/index.vue +++ b/src/views/micro/index.vue @@ -1,13 +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 { getUrl } from '@/utils/micors' -const router: any = useRouter() -const url = computed(() => getUrl(router.currentRoute.value.name)) -const name = computed(() => router.currentRoute.value.name) + 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