Browse Source

修复搜索功能6

JXDS18FUJT 1 year ago
parent
commit
3f70994c4a
3 changed files with 8 additions and 5 deletions
  1. 1 1
      src/utils/request.ts
  2. 5 0
      src/views/examRoadVideo/index.less
  3. 2 4
      src/views/examRoadVideo/index.tsx

+ 1 - 1
src/utils/request.ts

@@ -21,7 +21,7 @@ request.interceptors.request.use((config) => {
 });
 
 request.interceptors.response.use((res) => {
-	let redirect_uri =window.location.origin+'/home'
+	let redirect_uri =window.location.origin+'/download'
 	if (res && res.data) {
 		switch (res.data.code) {
 			case 401:

+ 5 - 0
src/views/examRoadVideo/index.less

@@ -20,6 +20,11 @@
                 margin-bottom: 20px;
                 margin-top: 20px;
                 position: relative;
+                .search-button{
+                    color: #fff;
+                    padding-left: 10px;
+                    font-size: 32px;
+                }
 
                 .icon1 {
                     position: absolute;

+ 2 - 4
src/views/examRoadVideo/index.tsx

@@ -180,10 +180,8 @@ export const ExamRoadVideo: React.FC = (props: any) => {
               getExamListByName(val)
             }} onChange={val => {
               setKeyWord(val)
-            }}  actionText={
-              <div style={{
-                color:"#fff"
-              }} onClick={() => {getExamListByName(keyWord) }}>搜索</div>
+            }}  action={
+              <div className="search-button" onClick={() => {getExamListByName(keyWord) }}>搜索</div>
             } value={keyWord} shape="round" background="transparent" placeholder="请输入搜索关键词"></Search>
             {/* <input placeholder="输入系列课标题" className="bar" type="search"></input> */}
           </div>