mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
Improve API listDocsByPath param sort (#8156)
* `listDocsByPath` API `sort` param backend * `listDocsByPath` API `sort` param frontend * `listDocsByPath` API `sort` param
This commit is contained in:
parent
cb527d7765
commit
6b62a69299
8 changed files with 21 additions and 22 deletions
|
|
@ -244,8 +244,12 @@ func ListDocTree(boxID, path string, sortMode int, flashcard bool, maxListCount
|
|||
}
|
||||
|
||||
boxConf := box.GetConf()
|
||||
if util.SortModeFileTree != boxConf.SortMode {
|
||||
sortMode = boxConf.SortMode
|
||||
|
||||
if util.SortModeUnassigned == sortMode {
|
||||
sortMode = Conf.FileTree.Sort
|
||||
if util.SortModeFileTree != boxConf.SortMode {
|
||||
sortMode = boxConf.SortMode
|
||||
}
|
||||
}
|
||||
|
||||
var files []*FileInfo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue