[fix] do not use fullpage.js
This commit is contained in:
@@ -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)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user