import React, { PureComponent } from 'react';
import { Tabs } from 'antd';
import style from "styled-components";
import NoAuthority from '../../common/NoAuthority';
const store = require("store");
const { TabPane } = Tabs;
export default class OneKeySearch extends PureComponent {
constructor(props, context) {
super(props, context);
this.state = {
// currentURL: "http://localhost:3000/#/course/manage",
};
}
componentDidMount() {
// 隐藏左侧菜单栏
document.querySelector('.ant-layout-sider').style.display = 'none';
document.querySelector('.ant-layout-content').style.margin = '0px';
document.querySelector('.oneKeySearchHidden').style.display = 'none';
// console.log('innerHTML', document.getElementById("OneKeySearch").innerHTML);
// document.getElementById("OneKeySearch").innerHTML = '';
}
componentWillUnmount() {
// 显示左侧菜单栏
document.querySelector('.ant-layout-sider').style.display = 'block';
document.querySelector('.ant-layout-content').style.margin = '16px';
document.querySelector('.oneKeySearchHidden').style.display = 'block';
}
render() {
// const { currentURL } = this.state;
return (
{/*
*/}
{store.get("OneKeySearchURL")&&store.get("OneKeySearchURL")["OneKeySearchURL"]?(
): (
)}
{/* {store.get("OneKeySearchURL") !== undefined ? (
) : ''
} */}
{/*
{store.get("coursewareLibraryManagementURL") !== undefined ? (
) : ''
}
*/}
{/*
课件库管理
*/}
);
}
}
const Container = style.div`
// padding:10px 24px 24px;
width:100%;
height:100%;
`;