mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-18 16:13:44 +08:00
重构错误处理逻辑,更新组件导入路径,新增多个模态框组件以支持用户、部门、角色和权限管理功能,优化分页和排序逻辑,更新类型定义以提高代码可读性和维护性
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user