This commit is contained in:
@@ -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,
|
||||
});
|
||||
},
|
||||
});
|
||||
};
|
||||
// 设置通用信息函数
|
||||
|
||||
10
js/about.js
10
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,
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
// 获取首页数据
|
||||
|
||||
@@ -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();
|
||||
|
||||
11
js/index.js
11
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,
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
// 获取首页数据
|
||||
|
||||
Reference in New Issue
Block a user