修复获取取餐码请求过晚
This commit is contained in:
parent
6c4786876e
commit
fed49cb781
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue