# Module Spec：config-system（src/config：配置聚合）

module:
  id: config-system
  name: 配置系统（src/config 聚合导出）
  type: core
  entrypoints:
    - src/config/index.js
    - src/config/cli.config.js
    - src/config/setting.config.js
    - src/config/theme.config.js
    - src/config/net.config.js

public_api:
  concept:
    - "src/config/index.js 将 4 个子配置聚合导出（cli/setting/theme/network）"
    - "部分配置会被 vue.config.js 以 Node 方式 require 读取，因此子配置文件应保持 Node 兼容（避免 window/document）"

  key_index:
    - "authentication/loginInterception/routesWhiteList/supportVisit/rolesControl/isHashRouterMode"
    - "tokenName/tokenTableName/storage/recordRoute"
    - "title/titleSeparator/titleReverse"
    - "defaultOpeneds/uniqueOpened/openFirstMenu"
    - "layout/themeName/menuWidth/columnStyle/showProgressBar/showTabs/showTheme/showThemeSetting"
    - "baseURL/contentType/requestTimeout/successCode/statusName/messageName"

acceptance:
  - "运行构建/启动时，vue.config.js require config 不报错"

pitfalls:
  - "配置文件在 Node 侧执行：避免使用浏览器对象"
