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

1 year ago
import App from './App'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
1 year ago
// 导入并挂载全局的分享方法
import path from './static/path.js'
Vue.mixin(path)
1 year ago
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
import {
1 year ago
baseUrl,MAP_KEY
1 year ago
} from '@/common/config.js'
Vue.prototype.baseUrl = baseUrl
1 year ago
Vue.prototype.MAP_KEY = MAP_KEY
1 year ago
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