修复获取取餐码请求过晚

This commit is contained in:
YeMingfei666 2024-10-25 11:47:49 +08:00
parent 6c4786876e
commit fed49cb781
1 changed files with 3 additions and 4 deletions

View File

@ -413,6 +413,8 @@
let $originGoods = []
let $category = []
async function init() {
const masterRes = await getMasterId()
data.masterId =masterRes.masterId
const shopInfo = await tbShopInfo()
$shop.value = shopInfo
const useType = data.table.status == 'using' ? data.table.useType : $returnUseType(shopInfo)
@ -440,10 +442,7 @@
$originGoods = goods
if (!data.table.tableId) {
//
const {
masterId
} = await getMasterId()
data.masterId = masterId
setTabBar(category, goods, [])
return
}