修改小程序菜单栏排序
This commit is contained in:
parent
966c2ec148
commit
7f570b7430
@ -285,7 +285,7 @@ class MenuDecorateLogic extends Logic {
|
||||
|
||||
$first = Db::name('dev_navigation')
|
||||
->where('del', 0)
|
||||
->order('id', 'desc')
|
||||
->order('create_time', 'asc')
|
||||
->findOrEmpty();
|
||||
|
||||
if ($first['id'] == $navId) {
|
||||
|
||||
@ -742,7 +742,7 @@ class IndexLogic extends Logic
|
||||
$navigation = Db::name('dev_navigation')
|
||||
->field('name,status,page_path,selected_icon,un_selected_icon')
|
||||
->where('del', 0)
|
||||
->order('id', 'desc')
|
||||
->order('create_time', 'asc')
|
||||
->withAttr('selected_icon',function($value,$data){
|
||||
return UrlServer::getFileUrl($value);
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user