mirror of https://gitee.com/xiaonuobase/snowy
parent
6f401347cc
commit
68ff1df47e
|
@ -108,7 +108,7 @@ service.interceptors.response.use(
|
|||
// }
|
||||
} else {
|
||||
// 统一成功提示
|
||||
const responseUrl = response.config.url
|
||||
const responseUrls = response.config.url.split('/')
|
||||
const apiNameArray = [
|
||||
'add',
|
||||
'edit',
|
||||
|
@ -129,7 +129,7 @@ service.interceptors.response.use(
|
|||
'saveDraft'
|
||||
]
|
||||
apiNameArray.forEach((apiName) => {
|
||||
if (responseUrl.endsWith(apiName)) {
|
||||
if (responseUrls[responseUrls.length - 1].includes(apiName)) {
|
||||
message.success(data.msg)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue