From 27607f7634ca29d7c08b55f7a32fca54431f7a3b Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Mon, 15 Jul 2024 09:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E7=8C=9B=E6=B5=8B=E8=AF=95=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/Header.js | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) 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' ? : ""}