diff --git a/js/common.js b/js/common.js index 854616f..35f4c49 100644 --- a/js/common.js +++ b/js/common.js @@ -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 => {