|
@@ -400,6 +400,12 @@
|
|
|
});
|
|
|
},
|
|
|
sync(){
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
sync().then(res => {
|
|
|
if(res.code == 200){
|
|
|
this.$message({ type: 'success', message: `同步成功!` })
|
|
@@ -407,6 +413,7 @@
|
|
|
}else{
|
|
|
this.$message({ type: 'error', message: res.message })
|
|
|
}
|
|
|
+ loading.close();
|
|
|
})
|
|
|
|
|
|
},
|