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, - }); - }, }); } // 获取首页数据