This commit is contained in:
禾几海
2020-08-05 22:33:53 +08:00
parent 53ddfe6e4c
commit 86378a46f2

View File

@@ -31,7 +31,7 @@ export class ErrorService {
public httpException(response: Response<any>) { public httpException(response: Response<any>) {
if (!environment.production) if (!environment.production)
console.log('exception=>', response) console.log('exception=>', response)
if (response.code === -1 && response.msg === '请求重复') return if (response.code === -1 && response.msg === '重复请求') return
if (this.componentStateService.currentPath === this.ADMIN_PAGE_PREFIX) { if (this.componentStateService.currentPath === this.ADMIN_PAGE_PREFIX) {
this.notification.create('error', `请求失败<${response.code}>`, `${response.msg}`); this.notification.create('error', `请求失败<${response.code}>`, `${response.msg}`);
} }