import App from './App' //导入全局api import api from '@/https/api.js'; Vue.prototype.$api = api; import uView from '@/uni_modules/uview-ui' Vue.use(uView) //全局使用dayjs import dayjs from "dayjs"; Vue.prototype.dayjs = dayjs; import empty from "@/components/empty.vue" import navigation from "@/components/navigation.vue" Vue.component('empty', empty) Vue.component('navigation', navigation) // #ifndef VUE3 import Vue from 'vue' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) return { app } } // #endif