mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-15 16:02:19 +08:00
rebuilt: base store to pinia
This commit is contained in:
parent
75358f1c41
commit
7835d532b4
@ -13,7 +13,9 @@ 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) => {
|
||||
@ -26,6 +28,7 @@ elementConfig.plugins.forEach((plugin) => {
|
||||
|
||||
app
|
||||
.use(store)
|
||||
.use(pinia)
|
||||
.use(router)
|
||||
.use(utils)
|
||||
.mount('#app')
|
||||
|
Loading…
x
Reference in New Issue
Block a user