作者 赵彬吉

update

@@ -62,7 +62,7 @@ class MenuLogic extends BaseLogic @@ -62,7 +62,7 @@ class MenuLogic extends BaseLogic
62 public function getAllMenu(){ 62 public function getAllMenu(){
63 $map[] = ['type' => Menu::TYPE_MENU]; 63 $map[] = ['type' => Menu::TYPE_MENU];
64 $map[] = ['status' => Menu::STATUS_NORMAL]; 64 $map[] = ['status' => Menu::STATUS_NORMAL];
65 - $list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type'], 0); 65 + $list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type', 'menu_path'], 0);
66 return $this->success(Arr::listToTree($list)); 66 return $this->success(Arr::listToTree($list));
67 } 67 }
68 68
@@ -71,7 +71,7 @@ class MenuLogic extends BaseLogic @@ -71,7 +71,7 @@ class MenuLogic extends BaseLogic
71 $map[] = ['type' => Menu::TYPE_MENU]; 71 $map[] = ['type' => Menu::TYPE_MENU];
72 $map[] = ['status' => Menu::STATUS_NORMAL]; 72 $map[] = ['status' => Menu::STATUS_NORMAL];
73 $map[] = ['id', 'in', $rights]; 73 $map[] = ['id', 'in', $rights];
74 - $list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type'], 0); 74 + $list = parent::getList($map, ['id' => 'desc'], ['id', 'pid', 'title', 'icon', 'type', 'menu_path'], 0);
75 return $this->success(Arr::listToTree($list)); 75 return $this->success(Arr::listToTree($list));
76 } 76 }
77 } 77 }