重构错误处理逻辑,更新组件导入路径,新增多个模态框组件以支持用户、部门、角色和权限管理功能,优化分页和排序逻辑,更新类型定义以提高代码可读性和维护性

This commit is contained in:
Chuck1sn
2025-06-16 18:00:15 +08:00
parent 772ad547bf
commit 87d288c58e
54 changed files with 308 additions and 221 deletions

View File

@@ -1,12 +1,12 @@
import createClient, { type Middleware } from "openapi-fetch";
import useAuthStore from "../composables/store/useAuthStore";
import type { paths } from "./types/schema"; // generated by openapi-typescript
import {
ForbiddenError,
RequestError,
UnAuthError,
InternalServerError,
} from "../types/error";
import type { paths } from "./types/schema"; // generated by openapi-typescript
} from "@/types/ErrorTypes";
const myMiddleware: Middleware = {
onRequest({ request, options }) {