feat: 同步地大更新
This commit is contained in:
@@ -12,7 +12,10 @@ $.ajaxSetup({
|
||||
contentType: "application/x-www-form-urlencoded;charset=utf-8",
|
||||
success: function (response, textStatus, jqXHR) {
|
||||
if (response.code !== 0) {
|
||||
this.$message.error(response.msg)
|
||||
// AJAX全局回调没有Vue实例上下文,使用Element全局消息组件展示业务错误。
|
||||
if (window.ELEMENT && ELEMENT.Message) {
|
||||
ELEMENT.Message.error(response.msg)
|
||||
}
|
||||
} else {
|
||||
return response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user