import App from './App' // 引入 uView UI import uView from 'vk-uview-ui'; import bleTool from '@/store/BLETools.js'; // #ifndef VUE3 import Vue from 'vue' import store from './store/store'; import './uni.promisify.adaptor' Vue.config.productionTip = false Vue.prototype.$bleTool = bleTool; App.mpType = 'app' const app = new Vue({ store, ...App }) Vue.use(uView) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) app.config.globalProperties.$bleTool = bleTool; // 使用 uView UI app.use(uView) return { app } } // #endif