mirror of https://github.com/halo-dev/halo-admin
Mute some apis
parent
4cdf634045
commit
cc4bfb58de
|
@ -7,7 +7,8 @@ const adminApi = {}
|
|||
adminApi.counts = () => {
|
||||
return service({
|
||||
url: `${baseUrl}/counts`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
mute: true
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ postApi.create = (postToCreate, autoSave) => {
|
|||
url: baseUrl,
|
||||
method: 'post',
|
||||
data: postToCreate,
|
||||
mute: autoSave,
|
||||
params: {
|
||||
autoSave: autoSave
|
||||
}
|
||||
|
|
|
@ -63,7 +63,9 @@ function getFieldValidationError(data) {
|
|||
|
||||
service.interceptors.request.use(
|
||||
config => {
|
||||
NProgress.start()
|
||||
if (!config.mute) {
|
||||
NProgress.start()
|
||||
}
|
||||
// TODO set token
|
||||
setTokenToHeader(config)
|
||||
return config
|
||||
|
|
Loading…
Reference in New Issue