From c52be7993610e0162f49ef3e6fbd6213000b767e Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 31 十月 2024 18:17:30 +0800 Subject: [PATCH] 测点导入功能修改,增加计算点,常量点导入导出功能 --- 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