界面语言切换功能,修复nav异常

This commit is contained in:
masnn committed 2020-06-10 23:20:36 +08:00
1 parent 7e7dee4074
commit 0923d6e72b
16 files changed
+53 -36

No files matched your search

+3 -2
View File
@@ -56,9 +56,10 @@ class SystemScriptHandler extends SystemHandler {
this.response.body.path.push(['manage_script', null]);
}
async post({ id, args }) {
async post({ id, args = '{}' }) {
args = JSON.parse(args);
// TODO Do not use console.log
await global.Hydro.script[id].run(JSON.parse(args), console.log);
await global.Hydro.script[id].run(args, console.log);
this.back();
}
}