1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

Wiki optimized third (#2406)

This commit is contained in:
shanshuirenjia
2018-09-29 15:47:53 +08:00
committed by Daniel Pan
parent 5cffd4cb69
commit 3ab4cbff4f
22 changed files with 612 additions and 107 deletions

View File

@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { gettext, repoID, serviceUrl } from '../constants';
import { gettext, repoID, siteRoot } from '../constants';
import SearchResultItem from './search-result-item';
import editorUtilities from '../../utils/editor-utilties';
import More from '../more';
@@ -169,7 +169,7 @@ class Search extends Component {
for (let key in queryData) {
params += key + '=' + queryData[key] + '&';
}
window.location = serviceUrl + '/search/?' + params.slice(0, params.length - 1);
window.location = siteRoot + '/search/?' + params.slice(0, params.length - 1);
}
renderSearchResult() {