vending-machine/mobile/main.js
2026-04-08 20:45:41 +08:00

29 lines
488 B
JavaScript

import App from './App'
import i18n from './i18n/index.js'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
export function createApp() {
const app = createSSRApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(i18n)
return {
app
}
}
// #endif