|
@@ -1,6 +1,8 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
+import './App.css';
|
|
import Layout from './component/Layout/Layout.jsx'
|
|
import Layout from './component/Layout/Layout.jsx'
|
|
|
|
+import { Button } from 'antd';
|
|
// import { $Axios } from '&/common/publish';
|
|
// import { $Axios } from '&/common/publish';
|
|
|
|
|
|
export default class App extends React.Component {
|
|
export default class App extends React.Component {
|
|
@@ -11,9 +13,6 @@ export default class App extends React.Component {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- UNSAFE_componentWillMount() {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
|
|
|
|
@@ -22,14 +21,6 @@ export default class App extends React.Component {
|
|
|
|
|
|
|
|
|
|
// autoLogin = () => {
|
|
// autoLogin = () => {
|
|
- // let href = window.location.href; // 获取浏览器链接
|
|
|
|
- // let args = href.split('?');
|
|
|
|
- // let args_list = args[1].split('&');
|
|
|
|
- // let account = args_list[0].split('=')[1].toString();//获取链接内账号
|
|
|
|
- // let password = args_list[1].split('=')[1].toString();//获取链接内密码
|
|
|
|
- // let login_ip = args_list[2].split('=')[1].toString();//获取链接内IP
|
|
|
|
- // console.log('账号:'+account + '密码:' + password + '外网IP:' + login_ip)
|
|
|
|
- // let me = this
|
|
|
|
// let param = {
|
|
// let param = {
|
|
// "account": account,
|
|
// "account": account,
|
|
// "password": password,
|
|
// "password": password,
|
|
@@ -52,7 +43,8 @@ export default class App extends React.Component {
|
|
return (
|
|
return (
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
{this.state.isLogin ? <Layout></Layout> : <div>
|
|
{this.state.isLogin ? <Layout></Layout> : <div>
|
|
- xxxx
|
|
|
|
|
|
+ <Button type="primary">Button</Button>
|
|
|
|
+ xxxxs
|
|
</div>}
|
|
</div>}
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
)
|
|
)
|