mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
perf: 优化文档打开时或刷新时样式闪动问题
This commit is contained in:
@@ -173,7 +173,7 @@ func getSelectedNode(array []*DocumentTree, parent_id int) int {
|
||||
}
|
||||
|
||||
func getDocumentTree(array []*DocumentTree, parentId int, selectedId int, selectedParentId int, buf *bytes.Buffer) {
|
||||
buf.WriteString("<ul>")
|
||||
buf.WriteString("<ul style='display:none;'>")
|
||||
|
||||
for _, item := range array {
|
||||
pid := 0
|
||||
|
||||
Reference in New Issue
Block a user