|
|
@@ -1,7 +1,6 @@
|
|
|
import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|
|
import { CaretRightOutlined } from '@ant-design/icons'
|
|
|
import styles from './index.module.scss'
|
|
|
-import SpinLoding from '@/components/SpinLoding'
|
|
|
import { Route, Switch, useLocation } from 'react-router-dom'
|
|
|
import AuthRoute from '@/components/AuthRoute'
|
|
|
import history from '@/utils/history'
|
|
|
@@ -20,6 +19,7 @@ import { useDispatch } from 'react-redux'
|
|
|
import { D1_APIgetlist } from '@/store/action/D1dict'
|
|
|
import { D3_APIgetInfo } from '@/store/action/D3role'
|
|
|
import store from '@/store'
|
|
|
+import SpinLodingSon from '@/components/SpinLodingSon'
|
|
|
|
|
|
function Layout() {
|
|
|
const [loding, setLoding] = useState(false)
|
|
|
@@ -256,7 +256,7 @@ function Layout() {
|
|
|
{/* 二级路由页面 */}
|
|
|
{loding ? (
|
|
|
<div className='mainBoxR'>
|
|
|
- <React.Suspense fallback={<SpinLoding />}>
|
|
|
+ <React.Suspense fallback={<SpinLodingSon />}>
|
|
|
<Switch>
|
|
|
{RouterCom.map(v => (
|
|
|
<AuthRoute key={v.id} exact path={v.path} component={v.Com} />
|