Skip to content

Commit

Permalink
修复使用message组件 未处理promise catch回调方法bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daxiongYang committed May 18, 2018
1 parent 7f59d9b commit c071933
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/views/modules/job/schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 暂停
pauseHandle (id) {
Expand Down Expand Up @@ -233,7 +233,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 恢复
resumeHandle (id) {
Expand Down Expand Up @@ -263,7 +263,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 立即执行
runHandle (id) {
Expand Down Expand Up @@ -293,7 +293,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
},
// 日志列表
logHandle () {
Expand Down
2 changes: 1 addition & 1 deletion src/views/modules/oss/oss.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/modules/sys/config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/modules/sys/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/modules/sys/role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/modules/sys/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
this.$message.error(data.msg)
}
})
})
}).catch(() => {})
}
}
}
Expand Down

0 comments on commit c071933

Please sign in to comment.