HomeLease/main.js
2025-08-19 16:02:50 +08:00

33 lines
560 B
JavaScript

import App from './App'
// #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 PageScrollMixin from './mixins/page-scroll-mixin.js'
import store from './store/index.js'
export function createApp() {
const app = createSSRApp(App)
// 注册全局 mixin (Vue3 方式)
app.mixin(PageScrollMixin)
// 注册 store
app.use(store)
return {
app,
}
}
// #endif