text: // eslint-disable-next-line no-unused-vars
  const config = {
    // 标题
    TITLE: "Apidoc",
    // 缓存配置
    CACHE: {
      // 缓存前缀
      PREFIX: "apidoc_",
    },
    // 请求配置
    HTTP: {
      // 接口响应超时时间
      TIMEOUT: 30000,
      // 多个可切换的host
      HOSTS: [
        {
          title:"",
          host:"index.php"
        }
      ],
      // 请求头 encodeURIComponent 转码
      HEADERS_ENCODEURICOMPONENT: false,
    },
    // 菜单配置
    MENU: {
      SHOWURL: false,
      WIDTH: 300,
    },
    // 请求类型的颜色
    METHODCOLOR: {
      GET: "#87d068",
      POST: "#2db7f5",
      PUT: "#ff9800",
      DELETE: "#ff4d4f",
      PATCH: "#802feb",
    },
    WITHCREDENTIALS: false,
    // 多语言
    LANG: [
      {
        title: "简体中文",
        lang: "zh-cn",
        messages: {
          "app.title": "Apidoc",
          "home.title": "首页",
          "home.appCount": "应用数",
          "home.apiCount": "API数量",
          "home.docsCount": "文档数量",
          "common.ok": "确认",
          "common.cancel": "取消",
          "common.clear": "清空",
          "common.desc": "说明",
          "common.action": "操作",
          "common.field": "字段",
          "common.type": "类型",
          "common.require": "必填",
          "common.defaultValue": "默认值",
          "common.value": "值",
          "common.api": "API",
          "common.docs": "文档",
          "common.close": "关闭",
          "common.view": "查看",
          "common.copySuccess": "复制成功",
          "common.page.404": "404-未知页面",
          "common.notdata": "暂无数据",
          "common.group": "分组",
          "common.notGroup": "未分组",
          "common.currentApp": "当前应用",
          "common.please.input": "请输入",
          "common.file.name": "文件名",
          "common.appOrVersion": "应用/版本",
          "common.setSuccess": "设置成功",
          "lang.change.confirm.title": "您确认切换语言为 {langTitle} 吗？",
          "lang.change.confirm.content": "确认后将刷新页面，并回到首页",
          "host.change.confirm.title": "您确认切换Host为 {hostTitle} 吗？",
          "auth.title": "授权访问",
          "auth.input.placeholder": "请输入访问密码",
          "apiPage.update.tip": "该接口有更新",
          "apiPage.update.button": "点击此处更新",
          "apiPage.author": "作者",
          "apiPage.tag": "标签",
          "apiPage.docs": "文档",
          "apiPage.json": "Json",
          "apiPage.debug": "调试",
          "apiPage.title.header": "请求头",
          "apiPage.title.params": "请求参数",
          "apiPage.title.responses": "响应结果",
          "apiPage.mdDetail.title": "{name} 字段的说明",
          "apiPage.debug.mock.reload": "更新Mock",
          "apiPage.debug.excute": "执行 Excute",
          "apiPage.debug.mockAndExcute": "更新Mock 并执行",
          "apiPage.debug.selectFile": "Select File",
          "apiPage.debug.selectFiles": "Select Files",
          "layout.menu.reload": "更新菜单",
          "layout.menu.openAll": "展开全部",
          "layout.menu.hideAll": "收起全部",
          "layout.cache.reload": "更新缓存",
          "layout.tabs.leftSide": "左侧",
          "layout.tabs.rightSide": "右侧",
          "layout.tabs.notTab": "没有标签",
          "layout.tabs.closeCurrent": "关闭当前",
          "layout.tabs.closeLeft": "关闭左侧",
          "layout.tabs.closeRight": "关闭右侧",
          "layout.tabs.closeAll": "关闭全部",
          "globalParam.title": "全局参数",
          "globalParam.header": "Headers",
          "globalParam.header.message": "发送请求时，所有接口将自动携带以下Header参数。",
          "globalParam.params": "Params",
          "globalParam.params.message": "发送请求时，所有接口将自动携带以下Params参数。",
          "globalParam.cancel.confirm": "确认清空以上所有参数吗?",
          "globalParam.add": "添加参数",
          "apiPage.json.formatError": "json 参数格式化错误",
          "apiPage.debug.event.before": "请求前事件",
          "apiPage.debug.event.after": "响应后事件",
          "apiPage.debug.event.setHeader": "设置请求头参数",
          "apiPage.debug.event.setGlobalHeader": "设置全局请求头参数",
          "apiPage.debug.event.setGlobalParam": "设置全局请求参数",
          "apiPage.debug.event.clearGlobalHeader": "清除全局请求头参数",
          "apiPage.debug.event.clearGlobalParam": "清除全局请求参数",
          "apiPage.debug.event.setParam": "设置请求参数",
          "apiPage.debug.event.clearParam": "清除请求参数",
          "apiPage.debug.event.handleParam": "处理请求参数",
          "apiPage.debug.event.ajax": "发送请求",
  
          "generator.title": "代码生成",
          "generator.apps.title": "应用/版本",
          "generator.group.title": "分组",
          "generator.table.field": "字段名",
          "generator.table.desc": "注释",
          "generator.table.type": "类型",
          "generator.table.length": "长度",
          "generator.table.default": "默认值",
          "generator.table.notNull": "非Null",
          "generator.table.autoAdd": "自增",
          "generator.table.mainKey": "主键",
          "generator.model.name": "模型名",
          "generator.table.name": "表名",
          "generator.table.comment": "表注释",
          "generator.model.name.placeholder": "请输入模型文件名",
          "generator.table.name.placeholder": "请输入表名",
          "generator.table.row.error": "第{rows}行，字段名、类型必填",
          "generator.submitSuccess": "生成成功",
        },
      },
    ],
  };
  
  localStorage.APIDOC_CONFIG = JSON.stringify(config);
  