From 661e8cf7b40d79d2024969e56f04100b31abef1a Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Wed, 11 Feb 2026 15:38:13 +0800
Subject: [PATCH] 优化字典类型属性提醒说明
---
ruoyi-ui/src/layout/components/IframeToggle/index.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/layout/components/IframeToggle/index.vue b/ruoyi-ui/src/layout/components/IframeToggle/index.vue
index eeddc87..02ba4c3 100644
--- a/ruoyi-ui/src/layout/components/IframeToggle/index.vue
+++ b/ruoyi-ui/src/layout/components/IframeToggle/index.vue
@@ -5,7 +5,7 @@
:key="item.path"
:iframeId="'iframe' + index"
v-show="$route.path === item.path"
- :src="item.meta.link"
+ :src="iframeUrl(item.meta.link, item.query)"
></inner-link>
</transition-group>
</template>
@@ -19,6 +19,15 @@
iframeViews() {
return this.$store.state.tagsView.iframeViews
}
+ },
+ methods: {
+ iframeUrl(url, query) {
+ if (Object.keys(query).length > 0) {
+ let params = Object.keys(query).map((key) => key + "=" + query[key]).join("&")
+ return url + "?" + params
+ }
+ return url
+ }
}
}
</script>
--
Gitblit v1.9.3