Skip to content

Commit

Permalink
修复一个bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyi1998 committed Sep 6, 2020
1 parent 42bfca7 commit f3c534d
Showing 1 changed file with 5 additions and 46 deletions.
51 changes: 5 additions & 46 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,52 +14,6 @@
<hr style=" height:2px;border:none;border-top:2px dashed #87CEFA;"/>
<br>
</div>
<script>
// function GetDomain() {
// var xmlhttp;
// if (window.XMLHttpRequest) {
// xmlhttp = new XMLHttpRequest();
// } else {
// xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
// }
// xmlhttp.onreadystatechange = function () {
// if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
// document.getElementById("myDomain").innerHTML = xmlhttp.responseText;
// }
// }
// xmlhttp.open("GET", "/getdomain.php?t=" + Math.random(), true);
// xmlhttp.send();
// }

// function GetRecords() {
// var xmlhttp;
// if (window.XMLHttpRequest) {
//
// xmlhttp = new XMLHttpRequest();
// } else {
// xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
// }
// xmlhttp.onreadystatechange = function () {
// if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
// var abc = xmlhttp.responseText;
// obj = JSON.parse(abc);
// if (obj == "") {
// ktable = "<tr bgcolor=\"#ADD3EF\"><th width=\"50%\">DNS Query Record</th><th width=\"25%\">IP Address</th><th width=\"25%\">Created Time</th></tr><td colspan=\"3\" align=\"center\">No Data</td>";
// document.getElementById("myRecords").innerHTML = ktable;
// } else {
// table = "<tr bgcolor=\"#ADD3EF\"><th width=\"50%\">DNS Query Record</th><th width=\"25%\">IP Address</th><th width=\"25%\">Created Time</th></tr>";
// for (var i = 0; i < obj.length; i++) {
//
// table = table + "<tr><td>" + obj[i][0] + "</td><td>" + obj[i][1] + "</td>" + "<td>" + obj[i][2] + "</td></tr>";
// }
// document.getElementById("myRecords").innerHTML = table;
// }
// }
// }
// xmlhttp.open("GET", "/getrecords.php?t=" + Math.random(), true);
// xmlhttp.send();
// }
</script>
<div style="text-align:center;" id="app">
<button type="button" v-on:click="GetDomain">刷新记录</button>
<button type="button" v-on:click="Clean">清空</button>
Expand Down Expand Up @@ -146,6 +100,11 @@
this.DnsData = ""
}
}
if (res['data']['HTTPStatusCode'] == 403) {
alert("token错误");
localStorage.clear();
location.reload()
}
}
)
},
Expand Down

0 comments on commit f3c534d

Please sign in to comment.