|
@@ -14,7 +14,7 @@ export default {
|
|
|
async getIp() {
|
|
async getIp() {
|
|
|
let res = await this.$axios({
|
|
let res = await this.$axios({
|
|
|
url: "http://ip-api.com/json",
|
|
url: "http://ip-api.com/json",
|
|
|
- method: "get",
|
|
|
|
|
|
|
+ method: "get"
|
|
|
});
|
|
});
|
|
|
// console.log(res);
|
|
// console.log(res);
|
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
"171.34.215.31",
|
|
"171.34.215.31",
|
|
|
"182.105.82.9",
|
|
"182.105.82.9",
|
|
|
"220.175.60.46",
|
|
"220.175.60.46",
|
|
|
- "39.160.30.198",
|
|
|
|
|
|
|
+ "39.160.30.198"
|
|
|
];
|
|
];
|
|
|
let isip = ipList.includes(IP);
|
|
let isip = ipList.includes(IP);
|
|
|
let isip2 = IP.indexOf("218.64.4") > -1;
|
|
let isip2 = IP.indexOf("218.64.4") > -1;
|
|
@@ -59,8 +59,8 @@ export default {
|
|
|
window.open("", "_self");
|
|
window.open("", "_self");
|
|
|
window.close();
|
|
window.close();
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|