|
@@ -35,19 +35,19 @@ export const request = function ({ type, data, dataType,contentType, url, succes
|
|
|
export const requestSuccessHandle = function (vue, response, tipSuccess, tipError, success, error, url) {
|
|
|
if (response.status === 'success' || response.error_code === 0) {
|
|
|
if (tipSuccess) {
|
|
|
- vue.$Notice.success({
|
|
|
+ vue.$notify.success({
|
|
|
title: '操作提示',
|
|
|
- desc: response.info,
|
|
|
- duration: 3
|
|
|
+ message: response.info,
|
|
|
+ duration: 3000
|
|
|
})
|
|
|
}
|
|
|
success && success(response)
|
|
|
} else {
|
|
|
if (tipError) {
|
|
|
- vue.$Notice.error({
|
|
|
+ vue.$notify.error({
|
|
|
title: '提示',
|
|
|
- desc: response.info || response.error_msg,
|
|
|
- duration: 4
|
|
|
+ message: response.info || response.error_msg,
|
|
|
+ duration: 4000
|
|
|
})
|
|
|
}
|
|
|
error && error(response)
|
|
@@ -156,7 +156,7 @@ class ActionRequest {
|
|
|
error: (res) => {
|
|
|
console.log(res)
|
|
|
// this.$router.push('/login')
|
|
|
- this.vue.$Notice.error({ title: '对不起您请求的数据不存在或者返回异常', duration: 5 })
|
|
|
+ this.vue.$notify.error({ title: '对不起您请求的数据不存在或者返回异常', duration: 5000 })
|
|
|
},
|
|
|
complete: () => {
|
|
|
this.vue.$Loading.finish()
|