zlpt_app/main.js

31 lines
572 B
JavaScript

import App from './App'
// vuex
import store from './store'
Vue.prototype.$store = store
import sidsocket from "@/common/websocket/websocket.js"
// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import './uni.promisify.adaptor'
//websocket
Vue.prototype.$socket = sidsocket;
Vue.config.productionTip = false
Vue.use(uView)
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif