no message
This commit is contained in:
parent
2dd72dbc08
commit
d424a7e1dc
@ -20,7 +20,7 @@ function $ajax(url) {
|
||||
.then(function (res) {
|
||||
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data
|
||||
if (data.code == 401) reject()
|
||||
if (data.code == 201) creationAlertBox("error", res.message)
|
||||
if (data.code == 201) creationAlertBox("error", res.message || res.msg)
|
||||
resolve(data)
|
||||
})
|
||||
.catch(err => {
|
||||
|
Loading…
Reference in New Issue
Block a user