From 2d0fc59fc78276112a74ecefed87b5f8f14763c2 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期日, 27 四月 2025 13:43:28 +0800
Subject: [PATCH] 添加页签openPage支持传递参数
---
src/layout/components/InnerLink/index.vue | 25 +++----------------------
1 files changed, 3 insertions(+), 22 deletions(-)
diff --git a/src/layout/components/InnerLink/index.vue b/src/layout/components/InnerLink/index.vue
index a1c3ef6..6839730 100644
--- a/src/layout/components/InnerLink/index.vue
+++ b/src/layout/components/InnerLink/index.vue
@@ -1,5 +1,5 @@
<template>
- <div :style="'height:' + height" v-loading="loading" element-loading-text="姝e湪鍔犺浇椤甸潰锛岃绋嶅�欙紒">
+ <div :style="'height:' + height">
<iframe
:id="iframeId"
style="width: 100%; height: 100%"
@@ -18,26 +18,7 @@
iframeId: {
type: String
}
-});
-
-const height = ref(document.documentElement.clientHeight - 94.5 + "px");
-const loading = ref(false);
-
-onMounted(() => {
- const { proxy } = getCurrentInstance()
- const iframeId = ("#" + props.iframeId).replace(/\//g, "\\/");
- const iframe = document.querySelector(iframeId);
- // iframe椤甸潰loading鎺у埗
- if (iframe.attachEvent) {
- loading.value = true;
- iframe.attachEvent("onload", function () {
- proxy.loading = false;
- });
- } else {
- loading.value = true;
- iframe.onload = function () {
- proxy.loading = false;
- };
- }
})
+
+const height = ref(document.documentElement.clientHeight - 94.5 + "px")
</script>
--
Gitblit v1.9.3