From 1c9984953146eb64d76bcc24fc801cbc7ebf7e92 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Thu, 14 Nov 2024 11:56:17 +0800 Subject: [PATCH] no message --- js/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/common.js b/js/common.js index a184844..45041dc 100644 --- a/js/common.js +++ b/js/common.js @@ -57,7 +57,8 @@ function $ajaxget(url, data) { showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) reject() } - if (data.code == 201) creationAlertBox("error", res.message) + if (data.code == 201) creationAlertBox("error", res.message || res.msg) + resolve(data) }) .catch(error => {