修复获取取餐码请求过晚
This commit is contained in:
@@ -413,6 +413,8 @@
|
|||||||
let $originGoods = []
|
let $originGoods = []
|
||||||
let $category = []
|
let $category = []
|
||||||
async function init() {
|
async function init() {
|
||||||
|
const masterRes = await getMasterId()
|
||||||
|
data.masterId =masterRes.masterId
|
||||||
const shopInfo = await tbShopInfo()
|
const shopInfo = await tbShopInfo()
|
||||||
$shop.value = shopInfo
|
$shop.value = shopInfo
|
||||||
const useType = data.table.status == 'using' ? data.table.useType : $returnUseType(shopInfo)
|
const useType = data.table.status == 'using' ? data.table.useType : $returnUseType(shopInfo)
|
||||||
@@ -440,10 +442,7 @@
|
|||||||
$originGoods = goods
|
$originGoods = goods
|
||||||
if (!data.table.tableId) {
|
if (!data.table.tableId) {
|
||||||
//无桌台
|
//无桌台
|
||||||
const {
|
|
||||||
masterId
|
|
||||||
} = await getMasterId()
|
|
||||||
data.masterId = masterId
|
|
||||||
setTabBar(category, goods, [])
|
setTabBar(category, goods, [])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user