|
|
@@ -6,6 +6,8 @@
|
|
|
import React, { Component } from 'react'
|
|
|
import { connect } from 'react-redux'
|
|
|
import { clearAllRedux } from '../../redux/utils/redux.utils'
|
|
|
+import { isMobile } from '../../utils/common/common.util'
|
|
|
+import { _baseURL } from '../../configs/api.config'
|
|
|
|
|
|
class UasEntry extends Component {
|
|
|
|
|
|
@@ -17,9 +19,13 @@ class UasEntry extends Component {
|
|
|
|
|
|
componentDidMount () {
|
|
|
document.title = 'UAS系统'
|
|
|
- clearAllRedux()
|
|
|
|
|
|
- this.props.history.replace('/homePage')
|
|
|
+ if (isMobile()) {
|
|
|
+ clearAllRedux()
|
|
|
+ this.props.history.replace('/homePage')
|
|
|
+ } else {
|
|
|
+ window.location.href = _baseURL
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
componentWillUnmount () {
|