Commit 65a47d70 authored by dlkong's avatar dlkong

弹窗关闭清除房间信息

parent 0bee0a13
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<span class="riskTab type4"></span>较小风险 <span class="riskTab type4"></span>较小风险
</van-grid> </van-grid>
</div> </div>
<van-dialog v-model="show" title="创建房间" show-cancel-button @confirm="saveRoomName"> <van-dialog v-model="show" title="创建房间" show-cancel-button @confirm="saveRoomName" @close = "closeDialog">
<van-cell-group> <van-cell-group>
<van-field v-model="roomName" label="房间名称" placeholder="请输入房间名称" /> <van-field v-model="roomName" label="房间名称" placeholder="请输入房间名称" />
<van-field <van-field
...@@ -312,6 +312,10 @@ export default { ...@@ -312,6 +312,10 @@ export default {
this.layout.push(this.layOutItem) this.layout.push(this.layOutItem)
// console.log('layOutItem==>>',this.layOutItem) // console.log('layOutItem==>>',this.layOutItem)
}, },
closeDialog(){
this.roomType = ''
this.roomName = ''
},
onConfirm(value) { onConfirm(value) {
this.roomType = value; this.roomType = value;
this.showPicker = false; this.showPicker = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment