lanan-old/lanan-master-uniapp/main.js
愉快的大福 7dc28dc701 init
2024-07-17 14:16:22 +08:00

35 lines
793 B
JavaScript

import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import config from '@/config'
import './permission' // permission
import share from './utils/share.js' // 导入并挂载全局的分享方法
Vue.mixin(share)
import request from '@/utils/request'
Vue.prototype.$request = request
Vue.prototype.$imgurl = config.baseUrl
import contactBar from '@/components/contact-bar/contact-bar.vue'
Vue.use(plugins)
// 引入uView
import uView from '@/uni_modules/uview-ui';
Vue.use(uView);
uni.$u.config.unit = 'rpx';
uni.$u.props.image.lazyLoad = true
Vue.component('contact-bar', contactBar)
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()