pengyh 1 ano atrás
pai
commit
58e37e3a6d

+ 7 - 0
src/views/mallManagement/goods/goodsWarehouse/index.vue

@@ -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();
 				})
 				
 			},