更新台桌模块

This commit is contained in:
2024-09-28 15:08:06 +08:00
parent fd1acc8352
commit 5a7aaad0a4
2 changed files with 10 additions and 1 deletions

View File

@@ -128,9 +128,12 @@
function diancan() { function diancan() {
const useType=props.status=='using'?props.data.useType:undefined
go.to('PAGES_CREATE_ORDER', { go.to('PAGES_CREATE_ORDER', {
tableId: props.data.tableId, tableId: props.data.tableId,
name: props.data.name name: props.data.name,
maxCapacity: props.data.maxCapacity,
status: props.data.status,
}) })
} }

View File

@@ -106,6 +106,7 @@
ref, ref,
reactive, reactive,
computed, computed,
onBeforeUnmount,
watch watch
} from 'vue'; } from 'vue';
const refMoreSheet = ref(null) const refMoreSheet = ref(null)
@@ -376,7 +377,12 @@
watch(() => times.active, (newval) => { watch(() => times.active, (newval) => {
setTimer() setTimer()
}) })
onBeforeUnmount(()=>{
console.log('table page onBeforeUnmount');
clearInterval(timer)
})
onHide(() => { onHide(() => {
console.log('table page hide');
clearInterval(timer) clearInterval(timer)
}) })
onShow(opt => { onShow(opt => {