修复windows下路径的问题,添加设置项,完善翻译

This commit is contained in:
undefined committed 2020-07-16 12:27:29 +08:00
1 parent 5980080302
commit 6ad41dc2ae
29 files changed
+368 -278

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import yaml from 'js-yaml';
import serialize from 'serialize-javascript';
function wrap(func: Function, type: string) {
return (...args: any) => {
@@ -12,7 +12,7 @@ function wrap(func: Function, type: string) {
args[i] = `${args[i].message}\n${args[i].stack}`;
}
}
global.Hydro.model.message.send(1, 1, yaml.dump({ time, type, args }, {}));
global.Hydro.model.message.send(1, 1, serialize({ time, type, args }), 0);
} catch (e) {
func(e.message);
}