refactor: 删除 constants 目录,直接使用源路径

- 删除 src/constants/ 目录(仅为转发代理)
- 更新 8 个文件的导入路径:
  * STORAGE_KEYS  @/config/storage
  * VALIDATORS  @/utils/validators
  * ROLE_ROOT  @/enums
- 修复旧的枚举路径(settings/device-enum 等)
This commit is contained in:
Ray.Hao
2025-12-12 14:04:35 +08:00
parent 23b52872c5
commit 715d70127d
9 changed files with 12 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
import { Storage } from "./storage";
import { AUTH_KEYS, ROLE_ROOT } from "@/constants";
import { AUTH_KEYS } from "@/config/storage";
import { ROLE_ROOT } from "@/enums";
import { useUserStoreHook } from "@/store/modules/user-store";
import router from "@/router";

View File

@@ -1,4 +1,4 @@
import { STORAGE_KEYS, APP_PREFIX } from "@/constants";
import { STORAGE_KEYS, APP_PREFIX } from "@/config/storage";
/**
* 存储工具类