mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 Improve av image preview https://github.com/siyuan-note/siyuan/pull/14843
This commit is contained in:
parent
2b03a364af
commit
f211932fba
2 changed files with 7 additions and 25 deletions
|
|
@ -615,17 +615,6 @@ func getCurrentAttrViewImages(c *gin.Context) {
|
|||
if nil != viewIDArg {
|
||||
viewID = viewIDArg.(string)
|
||||
}
|
||||
page := 1
|
||||
pageArg := arg["page"]
|
||||
if nil != pageArg {
|
||||
page = int(pageArg.(float64))
|
||||
}
|
||||
|
||||
pageSize := -1
|
||||
pageSizeArg := arg["pageSize"]
|
||||
if nil != pageSizeArg {
|
||||
pageSize = int(pageSizeArg.(float64))
|
||||
}
|
||||
|
||||
query := ""
|
||||
queryArg := arg["query"]
|
||||
|
|
@ -633,7 +622,7 @@ func getCurrentAttrViewImages(c *gin.Context) {
|
|||
query = queryArg.(string)
|
||||
}
|
||||
|
||||
images, err := model.GetCurrentAttributeViewImages(id, viewID, query, page, pageSize)
|
||||
images, err := model.GetCurrentAttributeViewImages(id, viewID, query)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
@ -642,7 +631,6 @@ func getCurrentAttrViewImages(c *gin.Context) {
|
|||
ret.Data = images
|
||||
}
|
||||
|
||||
|
||||
func getAttributeViewKeys(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue