去掉global?

This commit is contained in:
shenjack-5600u 2024-05-05 22:31:01 +08:00
parent c5b319730b
commit be7bcfd00d
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -141,7 +141,7 @@ if (run_env.from_code) {
// const input_path = run_env.cli_args[2];
logger.info("input_path", input_path);
const input_data = fs.readFileSync(input_path, "utf-8");
global.name_input = input_data;
name_input = input_data;
// 把 cli 参数传进来
run_env.cli_args = process.argv;