1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-12 11:41:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

后台返回数据统一为CommonReturnType

This commit is contained in:
2022-03-15 13:48:58 +08:00
parent ae26ecc372
commit cbfc277c9c
7 changed files with 62 additions and 13 deletions

View File

@@ -41,8 +41,8 @@ function checkBackendStatus() {
var backendStatus = false;
getRequest("/status/get", {})
.then(function (response) {
console.log("response.data", response.data);
if (response.data.server === "OK") {
console.log("backend response data:", response.data);
if (response.data.status === "success") {
$("#backendStatus").text("后台连接正常");
$("#backendStatus").addClass("info-ok");
} else {
@@ -60,7 +60,7 @@ function checkFrontendStatus() {
var backendStatus = false;
getRequest("../get-frontend-status", {})
.then(function (response) {
console.log("response.data", response.data);
console.log("frontend response data:", response.data);
if (response.data.server === "OK") {
$("#frontendStatus").text("前台连接正常");
$("#frontendStatus").addClass("info-ok");