fix interative url

This commit is contained in:
Achazwl 2022-06-10 16:46:44 +08:00
parent f46a486c0f
commit b0e1b3715d
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ for (i = 0; i < coll.length; i++) {
var submit = document.getElementById("submit");
submit.addEventListener("click", function() {
const Http = new XMLHttpRequest();
const url='/submit/?name='+array.join(";");
const url='/submit/?name='+array.join("&name=");
Http.open("GET", url);
Http.send();
alert("Now go back to your console")

View File

@ -107,7 +107,7 @@ class hello:
class submit:
def GET(self, _):
global names
names = [name.strip("root.") for name in web.input().name.split(";")]
names = [name.strip("root.") for name in web.input(name=[]).name]
app.stop()
def interactive(model, port=8888):