How to write vue loading

letloadingInstence

openLoading() {

loadingInstence=Loading.service({

lock:true,

text: 'trying to load...' ,

spinner:'el-icon-loading',

background:'rgba(0, 0, 0, 0.7)'

})

}

 

 

this . $nextTick (() => { // Loading called as a service needs to be closed asynchronously

loadingInstence.close()

})

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325481018&siteId=291194637