TraceabilityAPP/main.js

31 lines
492 B
JavaScript
Raw Normal View History

2023-10-17 11:00:41 +08:00
import App from './App'
2023-10-17 16:02:55 +08:00
import uviewPlus from 'uview-plus'
import {
createPinia
} from 'pinia'
2023-10-17 11:00:41 +08:00
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
2023-10-17 16:02:55 +08:00
...App
2023-10-17 11:00:41 +08:00
})
app.$mount()
// #endif
// #ifdef VUE3
2023-10-17 16:02:55 +08:00
import {
createSSRApp
} from 'vue'
2023-10-17 11:00:41 +08:00
export function createApp() {
2023-10-17 16:02:55 +08:00
const app = createSSRApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(uviewPlus)
return {
app,
pinia
}
2023-10-17 11:00:41 +08:00
}
// #endif