From da47a3349dcfd87db23ab8e64fbf35fe1aea5685 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 14 十一月 2024 16:52:21 +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