移动端
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.

33 lines
809 B

2 months ago
import Vue from 'vue'
2 months ago
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import * as dict from '@/utils/dict.js'
import * as util from '@/utils/ruoyi.js'
2 months ago
import * as roles from '@/utils/permission.js'
2 months ago
// 引入uView
import uView from '@/uni_modules/uview-ui'
// import mpShare from '@/uni_modules/uview-ui/libs/mixin/mpShare.js'
// Vue.mixin(mpShare)
2 months ago
// 挂载全局对象
Vue.use(plugins).use(uView)
2 months ago
let mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
2 months ago
2 months ago
2 months ago
Vue.config.productionTip = false
2 months ago
// 挂载vuex
Vue.prototype.$store = store
Vue.prototype.$dict = dict
Vue.prototype.$util = util
2 months ago
Vue.prototype.$roles = roles
2 months ago
2 months ago
App.mpType = 'app'
const app = new Vue({
...App
})
2 months ago
app.$mount()