diff --git a/src/forge/Images/emp.png b/src/forge/Images/emp.png
new file mode 100644
index 000000000..5db7c0778
Binary files /dev/null and b/src/forge/Images/emp.png differ
diff --git a/src/forge/Issues/Pages/list.jsx b/src/forge/Issues/Pages/list.jsx
index 5a690b4c0..bc177ec84 100644
--- a/src/forge/Issues/Pages/list.jsx
+++ b/src/forge/Issues/Pages/list.jsx
@@ -81,12 +81,12 @@ function List(props){
useEffect(()=>{
let v = allValue && allValue > 0;
- if((updateIds && !v && (updateIds.author_id || updateIds.issue_priorities_id || updateIds.issue_tag_ids || updateIds.milestone_id || updateIds.sort_by || updateIds.status_id ||updateIds.assigner_id)) || value || end_date || begin_date){
+ if((updateIds && !v && (updateIds.author_id || updateIds.issue_priorities_id || updateIds.issue_tag_ids || updateIds.milestone_id || updateIds.sort_by || updateIds.status_id ||updateIds.assigner_id)) || value || end_date || begin_date || aboutMe !=="all"){
setClearFlag(true);
}else{
setClearFlag(false);
}
- },[updateIds,value,allValue,begin_date,end_date])
+ },[updateIds,value,allValue,begin_date,end_date,aboutMe])
// 自定义一个初始不更新的hook
const useUpdateEffect = (fn, inputs) => {
const didMountRef = useRef(false);
diff --git a/src/modules/search/index.jsx b/src/modules/search/index.jsx
index 65f270ab9..9450d1c54 100644
--- a/src/modules/search/index.jsx
+++ b/src/modules/search/index.jsx
@@ -1,11 +1,12 @@
import React, { useEffect, useState } from 'react';
-import { Input, Row, Col, Tabs, Pagination } from 'antd';
+import { Input, Row, Col, Tabs, Pagination , Icon } from 'antd';
import axios from 'axios';
import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import { SnackbarHOC } from 'educoder';
import ItemList from './ItemList';
import Nodata from '../../forge/Nodata';
import './index.scss';
+import emp from '../../forge/Images/emp.png';
const { Search } = Input;
const { TabPane } = Tabs;
@@ -23,7 +24,7 @@ const GlobalSearch = ({ location, showNotification, history, mygetHelmetapi }) =
const [total, setTotal] = useState(0);
const [dataList, setDataList] = useState([]);
- const [ orderBy , setOrderBy ] = useState(undefined);
+ const [ orderBy , setOrderBy ] = useState("scoreDesc");
const [forcesearch, setForcesearch] = useState(false);
@@ -46,7 +47,11 @@ const GlobalSearch = ({ location, showNotification, history, mygetHelmetapi }) =
useEffect(() => {
searchDataList();
- }, [type, page, term, forcesearch,orderBy]);
+ }, [type, term, forcesearch,orderBy,page]);
+
+ useEffect(()=>{
+ setPage(1);
+ },[orderBy])
useEffect(() => {
if (ref) {
@@ -119,6 +124,8 @@ const GlobalSearch = ({ location, showNotification, history, mygetHelmetapi }) =
setPage(1);
if(type !== "1"){
setOrderBy(undefined);
+ }else{
+ setOrderBy("scoreDesc");
}
}
@@ -129,6 +136,34 @@ const GlobalSearch = ({ location, showNotification, history, mygetHelmetapi }) =
})
}, [history]);
+ const svg = ()=>(
+
+ )
+
+ const descSvg = ()=>(
+
+ )
+
+ const ascSvg = ()=>(
+
+ )
+
+ function iconSwitch(array){
+ if(array === "desc"){
+ return {`找到${totalType1}条结果`}
-