恢复loading

This commit is contained in:
na.guo
2020-08-13 17:39:26 +08:00
parent 3b45936cfc
commit 37e112d50a

View File

@@ -84,12 +84,12 @@ service.interceptors.request.use(
config => {
let relativePath = config.url && config.url.split('v1')[1]
if (whiteList.includes(relativePath)) {
// Toast.loading({
// duration: 0, // 持续展示 toast
// forbidClick: true, // 禁用背景点击
// loadingType: 'spinner',
// message: '加载中……'
// })
Toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
}
config.headers['token'] = window.localStorage.getItem('token')