浏览代码

[Mod 0000] 可配置首页标题跳转方式调整

houzekong 5 天之前
父节点
当前提交
f25e531917

+ 1 - 1
src/views/vent/home/configurable/components/ModuleBD.vue

@@ -114,7 +114,7 @@
   function redirectTo() {
     const { to } = props.moduleData;
     if (!to) return;
-    openWindow(to);
+    openWindow(to, { target: '_self' });
   }
 
   watch(

+ 1 - 1
src/views/vent/home/configurable/components/ModuleCommon.vue

@@ -73,7 +73,7 @@
   function redirectTo() {
     const { to } = props.moduleData;
     if (!to) return;
-    openWindow(getFormattedText(selectedData.value, to));
+    openWindow(getFormattedText(selectedData.value, to), { target: '_self' });
   }
 </script>
 <style lang="less" scoped>

+ 1 - 1
src/views/vent/home/configurable/components/ModuleEnhanced.vue

@@ -67,6 +67,6 @@
   function redirectTo() {
     const { to } = props.moduleData;
     if (!to) return;
-    openWindow(getFormattedText(selectedData.value, to));
+    openWindow(getFormattedText(selectedData.value, to), { target: '_self' });
   }
 </script>

+ 1 - 1
src/views/vent/home/configurable/components/ModuleMine.vue

@@ -97,7 +97,7 @@
   function redirectTo() {
     const { to } = props.moduleData;
     if (!to) return;
-    openWindow(to);
+    openWindow(to, { target: '_self' });
   }
 
   // 监听数据变化,初始化

+ 1 - 1
src/views/vent/home/configurable/components/ModuleOriginal.vue

@@ -59,6 +59,6 @@
   function redirectTo() {
     const { to } = props.moduleData;
     if (!to) return;
-    openWindow(getFormattedText(selectedData.value, to));
+    openWindow(getFormattedText(selectedData.value, to), { target: '_self' });
   }
 </script>