Vanessa 2025-06-17 00:06:52 +08:00
parent 06f65e178e
commit 0ef5fb7f1d

View file

@ -37,8 +37,8 @@ func changeAttrViewLayout(c *gin.Context) {
blockID := arg["blockID"].(string)
avID := arg["avID"].(string)
layoutType := arg["layoutType"].(av.LayoutType)
err := model.ChangeAttrViewLayout(blockID, avID, layoutType)
layoutType := arg["layoutType"].(string)
err := model.ChangeAttrViewLayout(blockID, avID, av.LayoutType(layoutType))
if err != nil {
ret.Code = -1
ret.Msg = err.Error()