bug
This commit is contained in:
14
src/main.js
14
src/main.js
@@ -6,6 +6,20 @@ import utils from './common/util';
|
||||
import ui from 'uview-ui'
|
||||
import apps from './apps/index'
|
||||
|
||||
const loading = title => {
|
||||
uni.showLoading({
|
||||
title: title ? title : '加载中',
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
|
||||
const hideLoading = () => {
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
Vue.prototype.$loading = loading
|
||||
Vue.prototype.$hideLoading = hideLoading
|
||||
|
||||
Vue.use(ui)
|
||||
Vue.use(apps)
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
Reference in New Issue
Block a user