From d424a7e1dc695a70806df7d00156e7b5b6cc9f14 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 11 Nov 2024 16:02:36 +0800 Subject: [PATCH] no message --- js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {