fix(api): 统一前端API请求路径为/api/v1前缀

更新前端API请求路径,添加/api/v1前缀以保持与后端路由一致
在server_controller.py中增加日志输出的详细信息
This commit is contained in:
zhangtao
2025-05-29 23:57:37 +08:00
parent b83dc42e2d
commit de997715f0
4 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import request from "@/utils/request";
// 查询在线用户列表
export function getOnlineList(query) {
return request({
url: '/monitor/online/list',
url: '/api/v1/monitor/online/list',
method: 'get',
params: query
})
@@ -12,7 +12,7 @@ export function getOnlineList(query) {
// 强退用户
export function deleteOnline(body) {
return request({
url: "/monitor/online/delete",
url: "/api/v1/monitor/online/delete",
method: "delete",
data: body,
});
+1 -1
View File
@@ -3,7 +3,7 @@ import request from "@/utils/request";
// 获取服务信息
export function getServer() {
return request({
url: '/monitor/server/info',
url: '/api/v1/monitor/server/info',
method: 'get'
})
}