Browse Source

错误提示优化

noToken
安虹睿 1 year ago
parent
commit
a25b7caf69
  1. 6
      PC/InterFace.Dash/src/utils/request.js
  2. 6
      PC/UI.WinIn.FasterZ.Job/src/utils/request.js
  3. 6
      PC/UI.WinIn.FasterZ.Store/src/utils/request.js

6
PC/InterFace.Dash/src/utils/request.js

@ -97,7 +97,8 @@ service.interceptors.response.use(
Message({
message: err.validationErrors[item].message,
type: 'error',
duration: 5 * 1000
duration: 3 * 1000,
showClose:true
})
}
} else {
@ -110,7 +111,8 @@ service.interceptors.response.use(
Message({
message: err.message,
type: 'error',
duration: 5 * 1000
duration: 3 * 1000,
showClose:true
})
}
}

6
PC/UI.WinIn.FasterZ.Job/src/utils/request.js

@ -97,7 +97,8 @@ service.interceptors.response.use(
Message({
message: err.validationErrors[item].message,
type: 'error',
duration: 5 * 1000
duration: 3 * 1000,
showClose:true
})
}
} else {
@ -110,7 +111,8 @@ service.interceptors.response.use(
Message({
message: err.message,
type: 'error',
duration: 5 * 1000
duration: 3 * 1000,
showClose:true
})
}
}

6
PC/UI.WinIn.FasterZ.Store/src/utils/request.js

@ -97,7 +97,8 @@ service.interceptors.response.use(
Message({
message: err.validationErrors[item].message,
type: 'error',
duration: 5 * 1000
duration: 3 * 1000,
showClose:true
})
}
} else {
@ -110,7 +111,8 @@ service.interceptors.response.use(
Message({
message: err.message,
type: 'error',
duration: 5 * 1000
duration: 3 * 1000,
showClose:true
})
}
}

Loading…
Cancel
Save