防止多次点击 #35

Merged
theluyuan merged 2 commits from xbx into master 2020-08-10 09:38:52 +00:00

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",