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.
20 lines
560 B
20 lines
560 B
import App from './App'
|
|
import request from './common/request';
|
|
import emotion from './common/emotion.js';
|
|
import * as enums from './common/enums.js';
|
|
import * as socketApi from './common/wssocket';
|
|
import store from './store';
|
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.use(store);
|
|
app.config.globalProperties.$http = request;
|
|
app.config.globalProperties.$wsApi = socketApi;
|
|
app.config.globalProperties.$emo = emotion;
|
|
app.config.globalProperties.$enums = enums;
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
|