This commit is contained in:
yanran200730
2021-12-08 19:24:59 +08:00
parent 010bd73e04
commit e3402dc801
6 changed files with 41 additions and 5 deletions

View File

@@ -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;