Преглед изворни кода

fix: 返回平台点击区域太小了,扩大点击区域

louhangfei пре 1 година
родитељ
комит
1e145930da
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/layout/components/Header/index.vue

+ 6 - 2
src/layout/components/Header/index.vue

@@ -149,8 +149,8 @@
       </div>
       <!-- 安全管控平台 -->
       <div class="layout-header-trigger layout-header-trigger-min">
-        <el-button style="background-color: #e6f7ff; border: none" type="primary">
-          <a :href="getPLUrl()" target="_blank">返回平台</a>
+        <el-button style="border: none" type="primary" @click="handleGoPlatform">
+          返回平台
         </el-button>
       </div>
       <!--切换全屏-->
@@ -249,6 +249,10 @@
 
   const go = useGo();
 
+  const handleGoPlatform = () => {
+    window.open(getPLUrl());
+  };
+
   const BASE_LOGIN_NAME = PageEnum.BASE_LOGIN_NAME;
 
   const { appPCUrl, appDownloadUrl } = useGlobSetting();