[fix] do not use fullpage.js

This commit is contained in:
2021-01-08 23:06:37 +00:00
parent a213f4e89f
commit 64bfe7ceb2
5 changed files with 87 additions and 126 deletions

View File

@@ -69,14 +69,15 @@ module.exports = (app, router, upload) => {
}
})
res.end(result)
break
default:
res.sendStatus(404);
break;
res.sendStatus(404)
break
}
}
else if (req.query.type === 'json') {
res.set({"Content-Disposition":"attachment; filename=\"" + tsp_list[req.query.tsp] + ".json\""})
// res.header("Content-Type",'application/json');
// res.header("Content-Type",'application/json')
data = {}
switch (parseInt(req.query.tsp)) {
case 0:
@@ -166,10 +167,10 @@ module.exports = (app, router, upload) => {
default:
break;
}
res.end(JSON.stringify(data));
res.end(JSON.stringify(data))
}
else {
res.sendStatus(404);
res.sendStatus(404)
}
});