防止多次点击

This commit is contained in:
luyuan 2020-08-10 17:31:56 +08:00
parent a318ea9f84
commit e946b98abf
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -62,7 +62,8 @@
fileListes:[], fileListes:[],
rSelect:[], rSelect:[],
image:"", image:"",
token:"" token:"",
tiaozhuan:false
}; };
}, },
methods: { methods: {
@ -115,6 +116,10 @@
}) })
}, },
kaibo(){ kaibo(){
if(this.tiaozhuan){
return ;
}
this.tiaozhuan = true
this.$u.api.createChatRoom({ this.$u.api.createChatRoom({
chat_name:this.max, chat_name:this.max,
live_desc:this.form.text, live_desc:this.form.text,
@ -128,6 +133,7 @@
title: res.message, title: res.message,
type: 'error' type: 'error'
}); });
this.tiaozhuan = false
} }
this.$u.route({ this.$u.route({
url:"/pages/release/zhibo", url:"/pages/release/zhibo",