1234567891011121314151617181920212223242526 |
- import App from './App'
- import http from './utils/http.js'
- import api from './config/api.js'
- uni.$http = http;
- uni.$api = api;
- // #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
|