refactor(app): 应用图标库归位到 app 模块
图标库接口前缀为 /api/v1/app-icons,与设备模块无关,页面与 API 一并迁到 app-manager/app-icon 和 api/app。
This commit is contained in:
@@ -91,7 +91,7 @@ export const XxxAPI = {
|
||||
```
|
||||
|
||||
- 分页统一用 `@/api/common` 的 `PageQuery` / `PageResult`。
|
||||
- 一个模块下有多组业务类型时按域拆文件(如 `src/api/device/types.ts` 与 `src/api/device/appIcon.types.ts`),不要混放在一个 `types.ts`。
|
||||
- 一个模块下有多组业务类型时按域拆文件(如 `src/api/app/appIcon.ts` 与 `src/api/app/appIcon.types.ts`),不要混放在一个 `types.ts`。
|
||||
- 错误提示由拦截器统一弹出;页面 `catch` 只做善后(关 loading、关弹窗、回滚状态),不要重复 `ElMessage.error`。
|
||||
- 轮询/探测请求用 `silentErrorStatuses` 静默指定状态码。
|
||||
- 免鉴权请求用 `anonymous: true` 或 `headers: { Authorization: "no-auth" }`(类型见 `types/axios.d.ts`)。
|
||||
|
||||
@@ -234,8 +234,8 @@ import {
|
||||
} from "element-plus";
|
||||
|
||||
import { usePageTable } from "@/composables";
|
||||
import AppIconAPI from "@/api/device/appIcon";
|
||||
import type { AppIconQuery, AppIconVO } from "@/api/device/appIcon.types";
|
||||
import AppIconAPI from "@/api/app/appIcon";
|
||||
import type { AppIconQuery, AppIconVO } from "@/api/app/appIcon.types";
|
||||
import { withBase } from "@/utils/asset-url";
|
||||
|
||||
defineOptions({
|
||||
Reference in New Issue
Block a user