123456789101112131415161718 |
- import { store } from './stores'
- import App from './App'
- import http from './utils/http'
- import config from './utils/config'
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- app.use(store)
- app.config.globalProperties.$http = http
- app.config.globalProperties.$uploadUrl = config.uploadUrl
- return {
- app,
- store
- }
- }
|