fix🐛: 修复侧边栏菜单排序问题 (690)

This commit is contained in:
wenjianzhang authored and GitHub committed 2022-08-25 14:18:02 +08:00
1 parent 508137da4b
commit 90db381b5a
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ type SysMenu struct {
type SysMenuSlice []SysMenu
func (x SysMenuSlice) Len() int { return len(x) }
func (x SysMenuSlice) Less(i, j int) bool { return x[i].MenuId < x[j].MenuId }
func (x SysMenuSlice) Less(i, j int) bool { return x[i].Sort < x[j].Sort }
func (x SysMenuSlice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
func (SysMenu) TableName() string {