格式化前端文件
This commit is contained in:
parent
3a15adec52
commit
6b4c4e82ea
|
@ -53,7 +53,7 @@ router.beforeEach(async(to, from, next) => {
|
|||
if (!asyncRouterFlag && whiteList.indexOf(from.name) < 0) {
|
||||
asyncRouterFlag++
|
||||
await getRouter()
|
||||
next({...to, replace: true })
|
||||
next({ ...to, replace: true })
|
||||
} else {
|
||||
if (to.matched.length) {
|
||||
next()
|
||||
|
|
|
@ -27,8 +27,8 @@ const closeLoading = () => {
|
|||
clearTimeout(timer)
|
||||
emitter.emit('closeLoading')
|
||||
}
|
||||
}
|
||||
// http request 拦截器
|
||||
}
|
||||
// http request 拦截器
|
||||
service.interceptors.request.use(
|
||||
config => {
|
||||
if (!config.donNotShowLoading) {
|
||||
|
|
Loading…
Reference in New Issue