lowcode-cli 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -10,13 +10,11 @@ import { Router, Route, Switch } from 'dva/router';
|
|
10
10
|
import MyLayout from './layouts/index';
|
11
11
|
import routerData from '@layout/router';
|
12
12
|
import { app } from './myDva';
|
13
|
-
import zhCN from 'antd/es/locale/zh_CN';
|
14
13
|
import './style.less';
|
15
|
-
import
|
16
|
-
import auth from './models/auth';
|
14
|
+
//import auth from './models/auth';
|
17
15
|
|
18
16
|
// 2. Model
|
19
|
-
app.model(auth);
|
17
|
+
// app.model(auth);
|
20
18
|
|
21
19
|
// 4. Router
|
22
20
|
app.router(history => {
|
@@ -5,8 +5,6 @@
|
|
5
5
|
*/
|
6
6
|
import React, { PureComponent } from 'react';
|
7
7
|
import { addFullScreenEvent, removeFullScreenEvent } from 'auto-full-screen';
|
8
|
-
import { connect } from 'dva';
|
9
|
-
import { Layout, Spin } from 'antd';
|
10
8
|
|
11
9
|
class MyLayout extends PureComponent {
|
12
10
|
componentDidMount() {
|
@@ -18,14 +16,9 @@ class MyLayout extends PureComponent {
|
|
18
16
|
}
|
19
17
|
|
20
18
|
render() {
|
21
|
-
const { location, children
|
22
|
-
return
|
23
|
-
<div style={{height: '100vh', width: '100vw'}}></div>
|
24
|
-
</Spin> : children
|
19
|
+
const { location, children } = this.props;
|
20
|
+
return children
|
25
21
|
}
|
26
22
|
}
|
27
23
|
|
28
|
-
|
29
|
-
export default connect(({ authModel }) => ({
|
30
|
-
authModel,
|
31
|
-
}))(MyLayout);
|
24
|
+
export default MyLayout;
|