Ver Fonte

修改返回深教AI首页

11wqe1 há 6 meses atrás
pai
commit
c05e9d7789
1 ficheiros alterados com 8 adições e 1 exclusões
  1. 8 1
      src/components/header/headerRight.vue

+ 8 - 1
src/components/header/headerRight.vue

@@ -63,7 +63,14 @@ const adminClick = () => {
 }
 
 const goBack = () => {
-    top.location.href = "https://ai.szedu.cn/"
+    const a = document.createElement('a');
+    a.href = "https://ai.szedu.cn/";
+    a.target = '_blank';
+    a.rel = 'noreferrer';
+    document.body.appendChild(a);
+    a.click();
+    document.body.removeChild(a);
+    // top.location.href = "https://ai.szedu.cn/" 
 }
 
 const userInfoOpen = () => {