|
@@ -7,7 +7,7 @@ import SpinLoding from './components/SpinLoding'
|
|
|
import store, { RootState } from './store'
|
|
import store, { RootState } from './store'
|
|
|
import { useSelector } from 'react-redux'
|
|
import { useSelector } from 'react-redux'
|
|
|
import NotFound from '@/components/NotFound'
|
|
import NotFound from '@/components/NotFound'
|
|
|
-import { envFlag, isLoc } from './utils/http'
|
|
|
|
|
|
|
+import { envFlag } from './utils/http'
|
|
|
import AsyncSpinLoding from './components/AsyncSpinLoding'
|
|
import AsyncSpinLoding from './components/AsyncSpinLoding'
|
|
|
import { Image } from 'antd'
|
|
import { Image } from 'antd'
|
|
|
import MessageCom from '@/components/Message'
|
|
import MessageCom from '@/components/Message'
|
|
@@ -66,7 +66,7 @@ export default function App() {
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
// 打包环境 刷新页面从 首页 开始
|
|
// 打包环境 刷新页面从 首页 开始
|
|
|
- if (!isLoc && myData.isLdong) {
|
|
|
|
|
|
|
+ if (!envFlag && myData.isLdong) {
|
|
|
if (window.location.hash !== '#/') {
|
|
if (window.location.hash !== '#/') {
|
|
|
window.location.href = window.location.href.split('#')[0] + '#/'
|
|
window.location.href = window.location.href.split('#')[0] + '#/'
|
|
|
}
|
|
}
|