refactor: ♻️ 移除 log 和完善 mock 接口
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user