11wqe1 6 месяцев назад
Родитель
Сommit
c05e9d7789
1 измененных файлов с 8 добавлено и 1 удалено
  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 = () => {