Files
city-store-transfer/main.js
2023-11-30 20:10:13 +08:00

34 lines
533 B
JavaScript

import App from './App'
import uView from 'uview-ui'
import {
apiService,
toast
} from "./service/request.js"
Vue.use(uView)
Vue.prototype.$api = apiService
Vue.prototype.$toast = toast
import share from './utils/share.js'
Vue.mixin(share)
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
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