1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

repair search bug (#2789)

This commit is contained in:
杨顺强
2019-01-08 23:02:09 +08:00
committed by Daniel Pan
parent 833f70a8cb
commit b8d67abd67

View File

@@ -171,9 +171,7 @@ class Search extends Component {
let queryData = { let queryData = {
q: newValue, q: newValue,
search_repo: repoID ? repoID : 'all', search_repo: repoID ? repoID : 'all',
search_ftypes: repoID ? 'custom' : 'all', search_ftypes: 'all',
ftype: repoID ? 'Markdown' : '',
input_fexts: repoID ? 'md' : ''
}; };
let params = ''; let params = '';
for (let key in queryData) { for (let key in queryData) {