1234567891011121314151617181920212223242526272829303132333435363738 |
- import App from './App'
- import Vue from 'vue'
- import './uni.promisify.adaptor'
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- import uView from './uni_modules/vk-uview-ui'
- import {
- createPinia
- } from 'pinia'
- import {
- createSSRApp
- } from 'vue'
- import {
- useAuthStore
- } from '@/store/authStore'
- export function createApp() {
- const app = createSSRApp(App)
- const pinia = createPinia()
-
- app.use(uView)
- app.use(pinia)
- const authStore = useAuthStore();
- authStore.loadAuthToken();
- return {
- app
- }
- }
|