fullScreen loader is not always necessary refactor default spinning to false

This commit is contained in:
lovemegowin
2019-06-21 14:12:15 +08:00
parent f6c869ad47
commit d6250f16b0
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -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',
})