import yaml from "yaml"; import fs from "fs"; /** * 配置信息帮助类 */ export default class ConfigHelper { static config = null; static initConfig() { this.config = yaml.parse(fs.readFileSync("./config.yml").toString()); } }