Browse Source

【更新】request请求:统一成功提示 路径严格匹配

pull/224/head
这么难演 5 months ago
parent
commit
e3abc84a1a
  1. 2
      snowy-admin-web/src/utils/request.js

2
snowy-admin-web/src/utils/request.js

@ -129,7 +129,7 @@ service.interceptors.response.use(
'saveDraft'
]
apiNameArray.forEach((apiName) => {
if (responseUrls[responseUrls.length - 1].includes(apiName)) {
if (responseUrls[responseUrls.length - 1] === apiName) {
message.success(data.msg)
}
})

Loading…
Cancel
Save