mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-27 02:33:45 +00:00
fullScreen loader is not always necessary refactor default spinning to false
This commit is contained in:
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
|
||||
import classNames from 'classnames'
|
||||
import styles from './Loader.less'
|
||||
|
||||
const Loader = ({ spinning = true, fullScreen }) => {
|
||||
const Loader = ({ spinning = false, fullScreen }) => {
|
||||
return (
|
||||
<div
|
||||
className={classNames(styles.loader, {
|
||||
|
||||
+1
-5
@@ -67,10 +67,6 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
setup({ dispatch }) {
|
||||
dispatch({ type: 'query' })
|
||||
},
|
||||
},
|
||||
effects: {
|
||||
*query({ payload }, { call, put, select }) {
|
||||
@@ -106,7 +102,7 @@ export default {
|
||||
routeList,
|
||||
},
|
||||
})
|
||||
if (pathMatchRegexp(['/','/login'], window.location.pathname)) {
|
||||
if (pathMatchRegexp(['/', '/login'], window.location.pathname)) {
|
||||
router.push({
|
||||
pathname: '/dashboard',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user