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.
30 lines
629 B
30 lines
629 B
import Vue from 'vue'
|
|
import store from '@/store'
|
|
import App from './App'
|
|
import config from '@/config.js'
|
|
import uView from '@/uni_modules/uview-ui'
|
|
|
|
import tui from './common/httpRequest'
|
|
|
|
Vue.config.productionTip = false
|
|
App.mpType = 'app'
|
|
Vue.prototype.$ossDomain = config.OSS_DOMAIN
|
|
Vue.use(uView)
|
|
|
|
|
|
// #ifndef MP
|
|
// 引入uView对小程序分享的mixin封装
|
|
let mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
|
|
Vue.mixin(mpShare)
|
|
// #endif
|
|
Vue.prototype.tui = tui;
|
|
Vue.prototype.$store = store
|
|
const app = new Vue({
|
|
store,
|
|
...App
|
|
})
|
|
|
|
// 请求封装
|
|
// require('@/utils/request.js')(app)
|
|
|
|
app.$mount()
|
|
|