This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
下拉框当前搜索置黑
Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1788/head
zouap
3 years ago
parent
211dd91cac
commit
9421712e7d
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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"
Write
Preview
Loading…
Cancel
Save