refactor: refactor the project to solve the hot update problem caused by circular dependencies close #301

This commit is contained in:
Vben
2021-03-08 21:19:09 +08:00
parent 371af18d0f
commit b7ce74abd6
28 changed files with 249 additions and 109 deletions

View File

@@ -17,9 +17,11 @@ import { setupStore } from '/@/store';
import { setupErrorHandle } from '/@/logics/error-handle';
import { setupGlobDirectives } from '/@/directives';
import { setupI18n } from '/@/locales/setupI18n';
import { registerGlobComp } from '/@/components/registerGlobComp';
// router-guard
import '/@/router/guard';
// Register icon Sprite
import 'vite-plugin-svg-icons/register';
@@ -32,6 +34,7 @@ import { isDevMode } from '/@/utils/env';
// Multilingual configuration
await setupI18n(app);
// Configure routing
setupRouter(app);