2023-09-19 14:58:40 +08:00
|
|
|
import App from './App'
|
|
|
|
|
|
|
|
|
|
// #ifndef VUE3
|
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
import './uni.promisify.adaptor'
|
2023-09-20 10:42:44 +08:00
|
|
|
// main.js
|
|
|
|
|
import uView from "uview-ui";
|
2023-09-22 15:29:53 +08:00
|
|
|
import store from "@/store/index.js"
|
2023-09-20 10:42:44 +08:00
|
|
|
Vue.use(uView);
|
2023-09-19 14:58:40 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
App.mpType = 'app'
|
|
|
|
|
const app = new Vue({
|
2023-09-22 15:29:53 +08:00
|
|
|
store,
|
2023-12-20 14:11:20 +08:00
|
|
|
...App
|
2023-09-19 14:58:40 +08:00
|
|
|
})
|
|
|
|
|
app.$mount()
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
2023-12-20 14:11:20 +08:00
|
|
|
import {
|
|
|
|
|
createSSRApp
|
|
|
|
|
} from 'vue'
|
2023-09-19 14:58:40 +08:00
|
|
|
export function createApp() {
|
2023-12-20 14:11:20 +08:00
|
|
|
const app = createSSRApp(App)
|
|
|
|
|
return {
|
|
|
|
|
app
|
|
|
|
|
}
|
2023-09-19 14:58:40 +08:00
|
|
|
}
|
|
|
|
|
// #endif
|