台桌管理-台桌列表修复

修复状态不存在时页面报错导致白屏
This commit is contained in:
2024-08-29 09:24:27 +08:00
parent 9aaeb7f0d6
commit c887f48035
2 changed files with 5 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ export default {
try { try {
let res = await tbShopTable({ let res = await tbShopTable({
...this.form, ...this.form,
qrcode:this.form.tableId,
shopId: localStorage.getItem('shopId') shopId: localStorage.getItem('shopId')
}, this.form.id ? 'put' : 'post') }, this.form.id ? 'put' : 'post')
this.$emit('success', res) this.$emit('success', res)

View File

@@ -50,9 +50,9 @@
<div class="state"> <div class="state">
<span <span
class="dot" class="dot"
:style="{ backgroundColor: status[item.status].type }" :style="{ backgroundColor: status[item.status]?status[item.status].type:'' }"
></span> ></span>
{{ status[item.status].label }} {{ status[item.status]?status[item.status].label:'' }}
</div> </div>
</div> </div>
<div class="row"> <div class="row">