Browse Source

update pc_chat

luke 6 năm trước cách đây
mục cha
commit
beb604846f
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      pc_chat/src/components/leaveMsg.vue

+ 4 - 0
pc_chat/src/components/leaveMsg.vue

@@ -110,6 +110,7 @@
 				imgUrl:'',
 				fileList: [],
 				isUpImg:false,
+				isSub:false,
 			}
 		},
 		methods: {
@@ -119,6 +120,7 @@
 			},
 			// 提交
 			sub() {
+				if(this.isSub) return;
 				if (this.call == '') {
 					this.$message.error('请填写称呼!');
 				} else if (this.leaveInfor == '') {
@@ -126,6 +128,7 @@
 				} else {
 					// 手动上传
 					this.isUpImg = true;
+					this.isSub = true;
 					this.$refs.upload.submit();
 					let _this = this;
 					let uid = localStorage.getItem('uid');
@@ -148,6 +151,7 @@
 								_this.$emit('value', 10);
 								this.$refs.upload.clearFiles();
 								this.fileList =[];
+								this.isSub = false;
 							}
 						})
 					}, 1500)