xinelu-doctor-app/main.js

30 lines
450 B
JavaScript
Raw Normal View History

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