no message

This commit is contained in:
A1300399510 2024-11-11 16:02:36 +08:00
parent 2dd72dbc08
commit d424a7e1dc

View File

@ -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 => {