refactor: ♻️ 移除 log 和完善 mock 接口

This commit is contained in:
hxr
2024-01-10 23:43:59 +08:00
parent a7233960e3
commit 06c448ebbc
10 changed files with 970 additions and 140 deletions

View File

@@ -66,6 +66,8 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
UnoCSS({
hmrTopLevelAwait: false,
}),
// MOCK 服务
mockDevServerPlugin(),
// 自动导入参考: https://github.com/sxzz/element-plus-best-practices/blob/main/vite.config.ts
AutoImport({
// 自动导入 Vue 相关函数ref, reactive, toRef 等
@@ -106,8 +108,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 指定symbolId格式
symbolId: "icon-[dir]-[name]",
}),
// 开启 mock
mockDevServerPlugin(),
],
// 预加载项目必需的组件
optimizeDeps: {