You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
516 B
23 lines
516 B
import App from './App'
|
|
|
|
import { createSSRApp } from 'vue'
|
|
import * as Pinia from 'pinia'
|
|
import locale from './locale'
|
|
import uviewPlus from 'uview-plus'
|
|
import '@/styles/index.scss'
|
|
import 'virtual:windi.css'
|
|
import { uniStorage } from './utils/storage'
|
|
import mixin from './utils/mixin'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.use(Pinia.createPinia())
|
|
app.use(locale)
|
|
app.use(uviewPlus)
|
|
app.use(mixin)
|
|
uniStorage()
|
|
return {
|
|
app,
|
|
Pinia
|
|
}
|
|
}
|
|
|