...
|
...
|
@@ -152,9 +152,11 @@ exports.getInterfaceConfig = function (routers) { |
|
|
var groupList = [];
|
|
|
var navs = [];
|
|
|
var group = {};
|
|
|
var urlMap = {};
|
|
|
_.forEach(routers.interfacesConfig,function(v,k){
|
|
|
if(v.url)
|
|
|
{
|
|
|
if(v.url&&!urlMap[v.url]) {
|
|
|
urlMap[v.url] = true;//用于去重复的url
|
|
|
|
|
|
var nav = v.url.split('/')[1];
|
|
|
if(group[nav]) {
|
|
|
group[nav].push(v);
|
...
|
...
|
|