Commit 0eb9183b authored by nature2104's avatar nature2104
parents d6979563 d0a014a1
......@@ -29,21 +29,9 @@ export function showLoading (content = '', timeout = 10000) {
Vue.$vux.loading.show({
text: content || 'Loading',
})
this.isLoading = true
// 10s后自动解屏用于防止屏幕锁死
setTimeout(() => {
if (vm.isLoading) {
Vue.$vux.loading.hide()
vm.isLoading = false
// 弹出操作失败
/* Vue.$vux.toast.show({
text: '操作失败',
type: 'warn',
time: 2000,
isShowMask: true,
position: 'middle',
}) */
}
}, timeout)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment