修复退菜未关闭

This commit is contained in:
YeMingfei666 2024-11-04 09:48:20 +08:00
parent 073baea2f9
commit b9c916e226
1 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@
<view class="u-p-t-18 u-p-l-30 u-p-r-30 u-p-b-10">
<my-button box-shadow shape="circle" @tap="confirm">确认退菜</my-button>
<view class="u-m-t-10">
<my-button @tap="toggleModelShow" shape="circle" bgColor="#fff" type="cancel"
<my-button @tap="onModelClose" shape="circle" bgColor="#fff" type="cancel"
box-shadow>取消</my-button>
</view>
</view>
@ -138,7 +138,8 @@
function toggleModelShow(show) {
modelShow.value = show ? true : false
}
function onModelClose() {
number.value=1
modelShow.value = false