fix:添加审计和全局
Build and Deploy Vue3 / build (push) Successful in 1m10s
Build and Deploy Vue3 / deploy (push) Successful in 3m51s

This commit is contained in:
2025-09-24 13:48:13 +08:00
parent 1b6874cc5f
commit 7a3134ac0c
14 changed files with 3739 additions and 272 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ import {http2} from "@/utils/request.js";
/**获取所有站点 */
export const getSiteList = (data) => {
return http2.get(`/v1/admin/audit/list?page=${data.page}&count=${data.count}&key=${data.key}`)
return http2.get(`/v1/admin/audit/list?page=${data.page}&server_id=${data.server_id}&user_id=${data.user_id}&count=${data.count}&key=${data.key}`)
}
/**手动触发站点审计 */
export const auditSite = () => {
return http2.get(`/v1/admin/audit/start`)
}
/**删除违规网页审计 */
/**删除违规网页审计 传入参数: web_key 站点名*/
export const delAudit = (data) => {
return http2.post(`/v1/admin/audit/delete`,data,{
headers: {
+4
View File
@@ -410,6 +410,10 @@ export const getRealDisk = data => {
export const getTraffic = data => {
return http2.get(`/v1/admin/server/get_server_bandwidth?server_id=${data}`);
};
/**获取服务器总流量信息 */
export const getTotalTraffic = data => {
return http2.get(`/v1/admin/server/get_server_total_bandwidth?server_id=${data}`);
};
/**获取版本更新 */
export const getVersion = () => {
return http2.get(`/v1/admin/version`);
+1 -1
View File
@@ -72,7 +72,7 @@ class Request {
// break
// }
// }
return error.response.data
return error.response
}
)
}