连猛测试环境处理
This commit is contained in:
parent
beca6cb675
commit
27607f7634
@ -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 <span></span>;
|
||||
@ -155,7 +155,7 @@ const SearchBox = (props) => {
|
||||
// hasBorder={false}
|
||||
// lists={autoCompleteData}
|
||||
// />
|
||||
<Dropdown overlay={overMenu} placement="topLeft" trigger={['click']}>
|
||||
<Dropdown overlay={overMenu} placement="topLeft" trigger={["click"]}>
|
||||
<div className="headerInput">
|
||||
{/* <Search
|
||||
placeholder={"请输入搜索内容"}
|
||||
@ -164,7 +164,12 @@ const SearchBox = (props) => {
|
||||
/> */}
|
||||
<Input
|
||||
placeholder="搜索菜单"
|
||||
prefix={<Icon type="search" style={{ color: "#909399" ,fontSize:'18px'}} />}
|
||||
prefix={
|
||||
<Icon
|
||||
type="search"
|
||||
style={{ color: "#909399", fontSize: "18px" }}
|
||||
/>
|
||||
}
|
||||
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" }}
|
||||
>
|
||||
<Icon type='global' className='header__right-icon'></Icon>
|
||||
<Icon type="global" className="header__right-icon"></Icon>
|
||||
{/* <IconFont
|
||||
type="icon-line-108"
|
||||
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
|
||||
@ -419,8 +424,8 @@ const FullScreenOpton = (props) => {
|
||||
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); // 进入全屏
|
||||
}}
|
||||
>
|
||||
<Icon type='alert' className='header__right-icon'></Icon>
|
||||
<Icon type="alert" className="header__right-icon"></Icon>
|
||||
{/* <IconFont
|
||||
type="icon-line-108"
|
||||
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
|
||||
@ -572,8 +577,8 @@ function Header(props) {
|
||||
</div>
|
||||
{!props.matchLogin ? (
|
||||
<div className="header__right">
|
||||
<RiskFourColor/>
|
||||
{/* <FullScreen /> */}
|
||||
<RiskFourColor />
|
||||
{window.location.host == "47.122.43.22:7001" || 'localhost:7001' ? <FullScreen /> : ""}
|
||||
<HeaderDataV />
|
||||
<HeaderSearch />
|
||||
<GuideCode />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user