明树Git Lab

Commit 1f2d5b07 authored by zengfanpei's avatar zengfanpei

update

parent e392c54c
......@@ -11,7 +11,7 @@ async function findUserByMobile(mobile) {
if (!mobile) {
return null;
}
const user = await DB.User.findOne({ mobile }).populate({path: "roles", select: "name key", match: {del: 0}})
const user = await DB.User.findOne({ mobile }).populate({path: "roles", select: "name key menus buttons", match: {del: 0}})
.populate({path: "depart", select: "name", match: {del: 0}})
.populate({path: "avatar"})
.lean().exec();//{ path: "roles depart avatar" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment