diff --git a/src/layout/Header.js b/src/layout/Header.js index 1b6257d..76e4f55 100644 --- a/src/layout/Header.js +++ b/src/layout/Header.js @@ -1,4 +1,4 @@ -import React, { useState, useMemo ,useEffect} from "react"; +import React, { useState, useMemo, useEffect } from "react"; import { connect } from "dva"; import { withRouter } from "dva/router"; import { Dropdown, Icon, Menu, message, Button, Modal, Input } from "antd"; @@ -8,7 +8,7 @@ import FoUserInfoShow from "../components/MainPage/FoUserInfoShow"; import FeedbackQuestion from "../components/MainPage/FeedbackQuestion"; import GuideCanvas from "../components/MainPage/GuideCanvas"; import IconFont from "../utils/iconFont"; -import { initFilter,requestFullScreenMethod } from "../utils/common"; +import { initFilter, requestFullScreenMethod } from "../utils/common"; import config from "../config"; import "./header.less"; import Option from "./Option"; @@ -134,7 +134,7 @@ const SearchBox = (props) => { }); props.history.push({ pathname: `/main/${menu.Node.ID}` }); setInputVal(""); - setAutoCompleteData([]) + setAutoCompleteData([]); }; if (window.navigator.userAgent.indexOf("Windows") < 1) { return ; @@ -155,7 +155,7 @@ const SearchBox = (props) => { // hasBorder={false} // lists={autoCompleteData} // /> - + {/* { /> */} } + prefix={ + + } onChange={(e) => { handleSearchMenu(e); }} @@ -330,8 +335,8 @@ const RiskFourColorOpton = (props) => { document.msFullScreen ); if (isFull) { - // / - }else{ + // / + } else { // requestFullScreenMethod(document.body); setshowModal(false); } @@ -369,11 +374,11 @@ const RiskFourColorOpton = (props) => { type="primary" onClick={() => { setshowModal(true); - requestFullScreenMethod(document.body); // 进入全屏 + requestFullScreenMethod(document.body); // 进入全屏 }} style={{ margin: "0px 36px", display: "flex", alignItems: "center" }} > - + {/* { document.msFullScreen ); if (isFull) { - // / - }else{ + // / + } else { // requestFullScreenMethod(document.body); setshowModal(false); } @@ -458,10 +463,10 @@ const FullScreenOpton = (props) => { type="primary" onClick={() => { setshowModal(true); - requestFullScreenMethod(document.body); // 进入全屏 + requestFullScreenMethod(document.body); // 进入全屏 }} > - + {/* {!props.matchLogin ? ( - - {/* */} + + {window.location.host == "47.122.43.22:7001" || 'localhost:7001' ? : ""}