| 1234567891011121314151617181920212223242526272829303132333435 |
- import App from './App'
- // #ifndef VUE3
- import Vue from 'vue'
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- // main.js 文件
- import uView from "uview-ui";
- Vue.use(uView);
- import {myRequest} from './util/api.js'
- Vue.prototype.$myRequest=myRequest
- // 引入store
- import store from './store'
- // 把vuex定义成全局组件
- Vue.prototype.$store = store
- import config from "./util/url.js"
- Vue.prototype.baseUrl = config.baseUrl
- app.$mount()
- // #endif
- // #ifdef VUE3
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
- }
- // #endif
|