|
|
@@ -9,7 +9,15 @@ export default {
|
|
|
name: "App",
|
|
|
created() {
|
|
|
const IP = sessionStorage.getItem("ip");
|
|
|
- let ipList = ["58.17.42.179","218.64.4.4","10.201.5.31","10.205.64.222"];
|
|
|
+ let ipList = [
|
|
|
+ "58.17.42.179",
|
|
|
+ "218.64.4.4",
|
|
|
+ "10.201.5.31",
|
|
|
+ "10.205.64.222",
|
|
|
+ "171.34.215.31",
|
|
|
+ "182.105.82.9",
|
|
|
+ "220.175.60.46",
|
|
|
+ ];
|
|
|
let isip = ipList.includes(IP);
|
|
|
if (!isip) {
|
|
|
alert("没有访问权限");
|
|
|
@@ -23,7 +31,7 @@ export default {
|
|
|
navigator.userAgent.indexOf("Chrome") != -1
|
|
|
) {
|
|
|
window.location.href =
|
|
|
- "https://www.baidu.com" + "?v=" + new Date().getTime();
|
|
|
+ "https://www.baidu.com" + "?v=" + new Date().getTime();
|
|
|
window.location.href = "about:blank";
|
|
|
window.close();
|
|
|
} else {
|
|
|
@@ -34,7 +42,7 @@ export default {
|
|
|
"https://www.baidu.com" + "?v=" + new Date().getTime();
|
|
|
}
|
|
|
window.location.href =
|
|
|
- "https://www.baidu.com" + "?v=" + new Date().getTime();
|
|
|
+ "https://www.baidu.com" + "?v=" + new Date().getTime();
|
|
|
window.opener = null;
|
|
|
window.open("", "_self");
|
|
|
window.close();
|