You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
fude/main.js

35 lines
670 B

import App from './App'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 导入并挂载全局的分享方法
import path from './static/path.js'
Vue.mixin(path)
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
import {
baseUrl,MAP_KEY
} from '@/common/config.js'
Vue.prototype.baseUrl = baseUrl
Vue.prototype.MAP_KEY = MAP_KEY
require('@/common/http.interceptor.js')(app)
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif