1234567891011121314151617181920212223242526272829303132333435363738 |
- import App from './App'
- // #ifndef VUE3
- import Vue from 'vue'
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- // #endif
- import uviewPlus from 'uview-plus';
- // requset请求
- import {
- requestBase,
- requestApp,
- requestFile
- } from '@/common/api.js';
- // 配置文件
- import config from '@/config.js';
- import share from '@/common/share.js';
- // #ifdef VUE3
- import {
- createSSRApp
- } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- app.use(uviewPlus)
- app.config.globalProperties.$api = requestBase;
- app.config.globalProperties.$app = requestApp;
- app.config.globalProperties.$apifile = requestFile;
- app.config.globalProperties.$config = config;
- app.config.globalProperties.$share = share;
- return {
- app
- }
- }
- // #endif
|