Commit d0a014a1 authored by JingChao's avatar JingChao

Update hlsPopup.js

parent 2f60ffcd
...@@ -29,21 +29,9 @@ export function showLoading (content = '', timeout = 10000) { ...@@ -29,21 +29,9 @@ export function showLoading (content = '', timeout = 10000) {
Vue.$vux.loading.show({ Vue.$vux.loading.show({
text: content || 'Loading', text: content || 'Loading',
}) })
this.isLoading = true
// 10s后自动解屏用于防止屏幕锁死 // 10s后自动解屏用于防止屏幕锁死
setTimeout(() => { setTimeout(() => {
if (vm.isLoading) { Vue.$vux.loading.hide()
Vue.$vux.loading.hide()
vm.isLoading = false
// 弹出操作失败
/* Vue.$vux.toast.show({
text: '操作失败',
type: 'warn',
time: 2000,
isShowMask: true,
position: 'middle',
}) */
}
}, timeout) }, 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