Forráskód Böngészése

Merge branch 'bug-fixa'

hbchen 1 éve
szülő
commit
a50ab2a36f
1 módosított fájl, 7 hozzáadás és 1 törlés
  1. 7 1
      src/views/system_manage/outlinkList.vue

+ 7 - 1
src/views/system_manage/outlinkList.vue

@@ -45,7 +45,13 @@ import {outlinkConfigInterence} from "@/api/modules/etaBaseConfigApi.js"
         })
       },
       gotoOutlink(item){
-        window.open(item.Url, '_blank')
+        let Url = item.Url
+        if(!(item.Url.startsWith("http://") || item.Url.startsWith("https://") || item.Url.startsWith("ftp://") || 
+        item.Url.startsWith("ftps://") || item.Url.startsWith("file://") || item.Url.startsWith("\/"))){
+          Url = "http://"+item.Url
+        }
+        // console.log(Url);
+        window.open(Url, '_blank')
       }
     },
   }