From c55010627b2a518fdfcfc94d14a4791759be866d Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 21 Nov 2025 14:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=94=80=E9=BB=98=E8=AE=A4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/common.js | 11 ----------- js/about.js | 10 ---------- js/feedback.js | 10 ---------- js/index.js | 11 ----------- 4 files changed, 42 deletions(-) diff --git a/common/common.js b/common/common.js index 801c120..bb3a02d 100644 --- a/common/common.js +++ b/common/common.js @@ -119,17 +119,6 @@ $(function () { Authorization: "Bearer" + " " + localStorage.jwt, }, success: handleSuccess, - error: function () { - // 若插件接口不存在或报错,回落到原有 /console/v1/common - $.ajax({ - url: "/console/v1/common", - method: "get", - headers: { - Authorization: "Bearer" + " " + localStorage.jwt, - }, - success: handleSuccess, - }); - }, }); }; // 设置通用信息函数 diff --git a/js/about.js b/js/about.js index 61a2a02..387d5ed 100644 --- a/js/about.js +++ b/js/about.js @@ -33,16 +33,6 @@ $(function () { Authorization: "Bearer" + " " + localStorage.jwt, }, success: handleSuccess, - error: function () { - $.ajax({ - url: "/console/v1/common", - method: "get", - headers: { - Authorization: "Bearer" + " " + localStorage.jwt, - }, - success: handleSuccess, - }); - }, }); } // 获取首页数据 diff --git a/js/feedback.js b/js/feedback.js index 1d49553..a2ee467 100644 --- a/js/feedback.js +++ b/js/feedback.js @@ -78,16 +78,6 @@ $(function () { Authorization: "Bearer" + " " + localStorage.jwt, }, success: handleSuccess, - error: function () { - $.ajax({ - url: "/console/v1/common", - method: "get", - headers: { - Authorization: "Bearer" + " " + localStorage.jwt, - }, - success: handleSuccess, - }); - }, }); } getCommentInfo(); diff --git a/js/index.js b/js/index.js index a099d04..d8d57a5 100644 --- a/js/index.js +++ b/js/index.js @@ -141,17 +141,6 @@ $(function () { Authorization: "Bearer" + " " + localStorage.jwt, }, success: handleSuccess, - error: function () { - // 插件未启用时回落到原有 /console/v1/common - $.ajax({ - url: "/console/v1/common", - method: "get", - headers: { - Authorization: "Bearer" + " " + localStorage.jwt, - }, - success: handleSuccess, - }); - }, }); } // 获取首页数据