🐛 修复 Windows WebTerminal

This commit is contained in:
naiba
2021-08-19 00:04:09 +08:00
parent 2d30b2cf47
commit 7990689949
10 changed files with 26 additions and 9 deletions

View File

@@ -163,6 +163,7 @@ function post(path, params, method = 'post') {
const form = document.createElement('form');
form.method = method;
form.action = path;
form.target = "_blank";
for (const key in params) {
if (params.hasOwnProperty(key)) {
@@ -176,6 +177,7 @@ function post(path, params, method = 'post') {
document.body.appendChild(form);
form.submit();
document.removeChild(form);
}
function addOrEditServer(server, conf) {