feat(projects): 添加常用组件、composables函数

This commit is contained in:
Soybean
2021-12-12 17:28:39 +08:00
parent e755caabf2
commit 230a50a4cf
87 changed files with 5424 additions and 2071 deletions

View File

@ -4,6 +4,7 @@ import AppProvider from './AppProvider.vue';
import { setupStore } from './store';
import { setupRouter } from './router';
import { setupAssets } from './plugins';
import { setupDirectives } from './directives';
function setupPlugins() {
/** 引入静态资源 */
@ -20,6 +21,9 @@ async function setupApp() {
// 优先挂载一下 appProvider 解决路由守卫Axios中可使用LoadingBarDialogMessage 等之类组件
appProvider.mount('#appProvider');
// 挂载自定义vue指令
setupDirectives(app);
// 挂载路由
await setupRouter(app);