From f4e6a890da2884777281031a9c736c7659c2a74a Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期四, 02 一月 2025 14:20:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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