|
@@ -4,6 +4,7 @@ import { StoreRoot, store } from './store'
|
4
|
4
|
import { deepCopy } from './utils'
|
5
|
5
|
import request, { apis } from './utils/request'
|
6
|
6
|
import { trackUserSource } from './utils/track'
|
|
7
|
+import * as log from './utils/rtLog'
|
7
|
8
|
import './app.less'
|
8
|
9
|
|
9
|
10
|
class App extends Component {
|
|
@@ -27,6 +28,10 @@ class App extends Component {
|
27
|
28
|
})
|
28
|
29
|
}
|
29
|
30
|
|
|
31
|
+ onError (err) {
|
|
32
|
+ log.error(err)
|
|
33
|
+ }
|
|
34
|
+
|
30
|
35
|
// 在此处是为了兼容热启动
|
31
|
36
|
componentDidShow () {
|
32
|
37
|
const { setUser } = store.getModel('user').getState()
|