Merge pull request '防止多次点击' (#35) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/35
This commit is contained in:
luyuan 2020-08-10 17:38:51 +08:00
commit 42a08e07ba

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