Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
fix: trace API 只能运行在 / 根目录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlleo committed Jul 20, 2022
1 parent f26bc36 commit b85cd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func writeTemplateFile() error {
document.getElementById('inprogress').innerHTML = "路由测试中...";
document.getElementById("trace").disabled = true;
document.getElementById("inprogress").style.display = "block";
fetch('/trace?ip=' + document.getElementById('ip').value + '&method=' + document.getElementById('method').value + '&token=' + document.getElementById('token').value)
fetch('trace?ip=' + document.getElementById('ip').value + '&method=' + document.getElementById('method').value + '&token=' + document.getElementById('token').value)
.then(function (res) {
return res.json();
})
Expand Down

0 comments on commit b85cd1c

Please sign in to comment.