code: function processRules(rules, dir, changeOrigin) {
    let ruleCache = [];
    if (typeof rules === 'object') {
      // 传具体路由表
      for (let i in rules) {
        if (rules.hasOwnProperty(i)) ruleCache.push(createRule(i, rules[i], dir, changeOrigin));
      }
    }
    return ruleCache;
  }
docs: 加载路由文件，遍历路由表