TraceabilityAPP/main.js

32 lines
461 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'
2023-11-27 18:23:17 +08:00
import store from './store'
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-11-27 18:23:17 +08:00
...App,
store
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-11-27 18:23:17 +08:00
2023-10-17 11:00:41 +08:00
export function createApp() {
2023-10-17 16:02:55 +08:00
const app = createSSRApp(App)
2023-11-27 18:23:17 +08:00
2023-10-17 16:02:55 +08:00
app.use(uviewPlus)
2023-11-27 18:23:17 +08:00
app.use(store)
2023-10-17 16:02:55 +08:00
return {
2023-11-27 18:23:17 +08:00
app
2023-10-17 16:02:55 +08:00
}
2023-10-17 11:00:41 +08:00
}
// #endif