import App from './App' // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' import uvUI from '@/uni_modules/uv-ui-tools' Vue.config.productionTip = false // 全局安装 uvUI Vue.use(uvUI) 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' import uvUI from '@/uni_modules/uv-ui-tools' export function createApp() { const app = createSSRApp(App) // 注册全局 mixin (Vue3 方式) app.mixin(PageScrollMixin) // 注册 store app.use(store) // Vue3 方式注册 uvUI app.use(uvUI) return { app, } } // #endif