import React from 'react'; import { Row, Col } from 'antd'; import './topTab.less'; import ajax from 'jquery/src/ajax/xhr.js' import $ from 'jquery/src/ajax'; import logo from '../../../image/acc-logo.png'; const TopTab = React.createClass({ getInitialState() { return { username: 'username', }; }, logOut() { let theActive = this.props.active; $.ajax({ method: "get", dataType: "json", url: globalConfig.context + "/login", }).done(function (data) { if ( theActive === undefined ) { window.location.href = "./login.html" } else { window.location.href = "../login.html" } }); }, render() { return (
) } }); export default TopTab;