mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-02 08:29:21 +00:00
feat: 新增AI模型配置功能,优化前端组件与代码规范
1. 新增Redis AI_MODEL_CONFIG枚举与后端AI模型配置CRUD接口 2. 升级vue-img-cutter到3.1.1版本,更新前端依赖 3. 重构前端多处ElMessage提示逻辑,统一由拦截器处理 4. 替换ElDrawer为FaDrawer组件,统一弹窗组件库 5. 重构文章详情、评论组件,新增租户切换器与AI配置面板 6. 优化代码生成模板、菜单树表格逻辑与代码高亮样式 7. 修复前端路由与组件命名问题,更新快速入口配置
This commit is contained in:
@@ -64,7 +64,7 @@ import { h, ref, computed } from "vue";
|
||||
import { useTable } from "@/hooks/core/useTable";
|
||||
import OnlineAPI, { type OnlineUserTable } from "@/api/module_monitor/online";
|
||||
import type { ColumnOption } from "@/types/component";
|
||||
import { ElMessage, ElMessageBox, ElTooltip } from "element-plus";
|
||||
import { ElMessageBox, ElTooltip } from "element-plus";
|
||||
import { useAuth } from "@/hooks/core/useAuth";
|
||||
import type { SearchFormItem } from "@/components/forms/fa-search-bar/index.vue";
|
||||
import type FaSearchBar from "@/components/forms/fa-search-bar/index.vue";
|
||||
@@ -135,7 +135,7 @@ function kickSession(sessionId: string) {
|
||||
type: "warning",
|
||||
});
|
||||
await OnlineAPI.deleteOnline(sessionId);
|
||||
ElMessage.success("操作成功");
|
||||
// 成功 / 失败提示由 axios 拦截器统一处理
|
||||
await refreshData();
|
||||
} catch {
|
||||
// 用户取消或操作失败
|
||||
@@ -270,7 +270,7 @@ function handleClearAll() {
|
||||
});
|
||||
clearAllLoading.value = true;
|
||||
await OnlineAPI.clearOnline();
|
||||
ElMessage.success("操作成功");
|
||||
// 成功 / 失败提示由 axios 拦截器统一处理
|
||||
await refreshData();
|
||||
} catch {
|
||||
// 用户取消
|
||||
|
||||
Reference in New Issue
Block a user