Browse Source

下拉框当前搜索置黑

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1788/head
zouap 3 years ago
parent
commit
9421712e7d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/search.go

+ 4
- 0
routers/search.go View File

@@ -34,6 +34,10 @@ func InitESClient() {
}

func Search(ctx *context.Context) {
log.Info("search template.")
if ctx.Query("q") == "" {

}
keyword := strings.Trim(ctx.Query("q"), " ")
ctx.Data["Keyword"] = keyword
ctx.Data["SortType"] = "newest"


Loading…
Cancel
Save