From 813ce2d8ab6e65467cef72a0b87bfb8a51fb2d90 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 30 十月 2024 16:13:22 +0800 Subject: [PATCH] 测点列表.xlsx --- src/views/micro/index.vue | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/micro/index.vue b/src/views/micro/index.vue index 3de28f4..1a4669c 100644 --- a/src/views/micro/index.vue +++ b/src/views/micro/index.vue @@ -4,10 +4,19 @@ </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 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 + } +) </script> <style scoped lang="scss"> .sub-app { -- Gitblit v1.9.3