mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-05 09:20:57 +00:00
refactor: 清理无用导入、重构组件路径与统一依赖导入
1. 移除 .prettierignore 和 tsconfig.json 中对 src/types/import/ 的配置 2. 全局替换 @/utils/message 导入为直接从 element-plus 导入组件 3. 移动并统一组件路径:将 widget/fa-icon-button 迁移至 others/fa-icon-button 4. 新增多环境配置示例文件与docker部署配置 5. 补充类型导入与类型文件统一导出 6. 修复卡片样式与布局细节问题 7. 移除过时的 initIconify 同步初始化函数
This commit is contained in:
@@ -4,10 +4,11 @@ import { MenuTable, MenuForm } from "@/api/module_system/menu";
|
||||
const API_PATH = "/system/user";
|
||||
|
||||
export const UserAPI = {
|
||||
getCurrentUserInfo() {
|
||||
getCurrentUserInfo(checkDataScope?: boolean) {
|
||||
return request<ApiResponse<UserInfo>>({
|
||||
url: `${API_PATH}/current/info`,
|
||||
method: "get",
|
||||
params: checkDataScope === false ? { check_data_scope: false } : undefined,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user