mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
测试数据上传时自动读取config
This commit is contained in:
1 parent
0d7d6ea12a
commit
4b3c10b4eb
14 files changed
+89
-42
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ async function load() {
|
||||
process.stdin.setEncoding('utf8');
|
||||
process.stdin.on('data', async (input) => {
|
||||
try {
|
||||
const t = eval(input.toString().trim()); // eslint-disable-line no-eval
|
||||
const t = eval(input.toString().trim());
|
||||
if (t instanceof Promise) console.log(await t);
|
||||
else console.log(t);
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user