loading
This commit is contained in:
@@ -122,8 +122,15 @@ export default {
|
||||
this.$refs.child.active = false
|
||||
},
|
||||
async __confirmPoint (code, type) {
|
||||
this.loading = this.$loading({
|
||||
lock: true,
|
||||
text: this.$t('common.loading'),
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
try {
|
||||
let res = await confirmPoint(code, type)
|
||||
this.loading.close()
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer)
|
||||
}
|
||||
@@ -133,6 +140,7 @@ export default {
|
||||
}, 1000)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
this.loading.close()
|
||||
}
|
||||
},
|
||||
toCancle () {
|
||||
|
||||
Reference in New Issue
Block a user