mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-03 03:56:41 +08:00
35 lines
825 B
TypeScript
35 lines
825 B
TypeScript
/*
|
|
* @Author: ShawnPhang
|
|
* @Date: 2022-03-03 14:13:16
|
|
* @Description:
|
|
* @LastEditors: ShawnPhang <https://m.palxp.cn>, Jeremy Yu <https://github.com/JeremyYu-cn>
|
|
* @LastEditTime: 2024-02-26 17:54:00
|
|
*/
|
|
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
// import store from './store'
|
|
import utils from './utils'
|
|
import 'normalize.css/normalize.css'
|
|
import '@/assets/styles/index.less'
|
|
import elementConfig from './utils/widgets/elementConfig'
|
|
import { createPinia } from 'pinia'
|
|
|
|
const pinia = createPinia()
|
|
const app = createApp(App)
|
|
|
|
elementConfig.components.forEach((component) => {
|
|
app.component(component.name, component)
|
|
})
|
|
|
|
elementConfig.plugins.forEach((plugin) => {
|
|
app.use(plugin)
|
|
})
|
|
|
|
app
|
|
// .use(store)
|
|
.use(pinia)
|
|
.use(router)
|
|
.use(utils)
|
|
.mount('#app')
|