Skip to content

Commit

Permalink
Update adminUser.js
Browse files Browse the repository at this point in the history
菜单由于某种原因重复的问题
  • Loading branch information
doramart authored Jul 27, 2020
1 parent 347d94c commit 5e12787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controller/manage/adminUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ class AdminUserController extends Controller {

}
}

renderMap = _.uniqWith(renderMap, _.isEqual);

await ctx.render('manage/index.html', {
renderMap: renderMap,
Expand All @@ -529,4 +531,4 @@ class AdminUserController extends Controller {

}

module.exports = AdminUserController;
module.exports = AdminUserController;

0 comments on commit 5e12787

Please sign in to comment.