Skip to content

Commit 60f524d

Browse files
committed
音频播放功能
1 parent 97f08a0 commit 60f524d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

controllers/DocumentController.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,11 @@ func (this *DocumentController) Read() {
299299
src, _ := sel.Attr("src")
300300
if item == "video" {
301301
sel.BeforeHtml(fmt.Sprintf(videoBoxFmt, title, poster, src, title))
302+
sel.Remove()
303+
} else {
304+
sel.SetAttr("preload", "true")
305+
sel.SetAttr("controlslist", "nodownload")
302306
}
303-
sel.Remove()
304307
})
305308
}
306309

0 commit comments

Comments
 (0)