fix: 修改预览页面动态注册方式

This commit is contained in:
MTrun
2022-03-10 14:34:26 +08:00
parent 87b033c633
commit 5694f61e4d
7 changed files with 24 additions and 32 deletions
+1 -4
View File
@@ -3,7 +3,7 @@ import App from './App.vue'
import router, { setupRouter } from '@/router'
import i18n from '@/i18n/index'
import { setupStore } from '@/store'
import { setupNaive, setupDirectives, setupCustomComponents, setupPreviewPackages } from '@/plugins'
import { setupNaive, setupDirectives, setupCustomComponents } from '@/plugins'
import { AppProvider } from '@/components/AppProvider/index'
import { setHtmlTheme } from '@/utils'
import 'animate.css/animate.min.css'
@@ -22,9 +22,6 @@ async function appInit() {
// 注册全局自定义组件
setupCustomComponents(app)
// 预览页面注册()
setupPreviewPackages(app)
// 挂载状态管理
setupStore(app)