generated from ccsens_fe/uni-vue3-template
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.
21 lines
421 B
21 lines
421 B
import * as Pinia from 'pinia'
|
|
|
|
import App from './App.vue'
|
|
import { createSSRApp } from 'vue'
|
|
import { setupApi } from '@/api'
|
|
import { setupHttp } from '@/utils/http'
|
|
import { setupStore } from '@/store'
|
|
import uView from './uni_modules/vk-uview-ui'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
setupHttp(app)
|
|
setupApi(app)
|
|
setupStore(app)
|
|
|
|
app.use(uView)
|
|
return {
|
|
app,
|
|
Pinia,
|
|
}
|
|
}
|
|
|