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 uviewPlus from 'uview-plus' import fantMini from '@/uni_modules/fant-mini-plus' import functions from '@/utils/functions' import saomiao from '@/compoment/saomiao.vue' import tips from '@/compoment/tips/tips.vue' import tiplist from '@/compoment/tiplist/tiplist.vue' import InputNum from '@/compoment/InputNum/InputNum.vue'; import BasicContainer from '@/compoment/BasicContainer/BasicContainer.vue'; import PopUp from '@/compoment/PopUp/PopUp.vue'; import BluetoothList from '@/compoment/BluetoothList/BluetoothList.vue'; import ScrollList from '@/compoment/ScrollList/ScrollList.vue'; import PullDownBox from '@/compoment/PullDownBox/PullDownBox.vue'; /** 树形组件 */ import MyTree from '@/compoment/MyTree/MyTree.vue' /** 复选框 */ import CheckBox from '@/compoment/CheckBox/CheckBox.vue' /** 单选框 */ import RadioBox from '@/compoment/RadioBox/RadioBox.vue' /** 输入框组件 */ import MyInput from '@/compoment/MyInput/MyInput'; /** 抽屉组件 */ import MyDrawer from '@/compoment/MyDrawer/MyDrawer'; /** 表格 */ import MyTable from '@/compoment/MyTable/MyTable'; import saomiao1 from '@/compoment/saomiao1.vue' import saomiao2 from '@/compoment/saomiao2.vue' import saomiao3 from '@/compoment/saomiao3.vue' import saomiao4 from '@/compoment/saomiao4.vue' import utils from '@/utils/utils.js' import Store from '@/store/index.js' import * as Pinia from 'pinia'; export function createApp() { const app = createSSRApp(App) app.config.warnHandler = () => null app.provide('functions', functions) app.provide('utils', utils) app.use(uviewPlus) app.use(Store) app.use(Pinia.createPinia()) app.use(fantMini) app .component('saomiao', saomiao) .component('tips', tips) .component('tiplist', tiplist) .component('saomiao1', saomiao1) .component('saomiao2', saomiao2) .component('saomiao3', saomiao3) .component('saomiao4', saomiao4) .component('InputNum', InputNum) .component('BasicContainer', BasicContainer) .component('PopUp', PopUp) .component('BluetoothList', BluetoothList) .component('ScrollList', ScrollList) .component('PullDownBox', PullDownBox) .component('MyTree', MyTree) .component('CheckBox', CheckBox) .component('RadioBox', RadioBox) .component('MyInput', MyInput) .component('MyDrawer', MyDrawer) .component('MyTable', MyTable) uni.$u.config.unit = 'rpx' return { app, Pinia } } // #endif