feat(system): 添加系统配置功能- 新增系统配置页面和相关功能

- 实现配置列表展示、筛选、添加、编辑和删除功能
- 添加配置详情页面- 优化配置缓存刷新逻辑
This commit is contained in:
Ky10
2024-11-16 20:16:36 +08:00
parent e5525dfd62
commit d2ead8fd56
6 changed files with 498 additions and 30 deletions

View File

@@ -1,4 +1,3 @@
// import request from "@/utils/request";
import request from "@/utils/request";
const CONFIG_BASE_URL = "/api/v1/config";
@@ -62,12 +61,8 @@ const ConfigAPI = {
refreshCache() {
return request({
url: `${CONFIG_BASE_URL}`,
method: "POST",
header: {
"Content-Type": "application/json",
"X-HTTP-Method-Override": "PATCH",
},
url: `${CONFIG_BASE_URL}/refresh`,
method: "PUT",
});
},
};