From c6c26809933c188e817989971db1101850c59e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Tue, 28 May 2024 15:57:18 +0800 Subject: [PATCH] 1 --- pages/order_food/order_food.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pages/order_food/order_food.vue b/pages/order_food/order_food.vue index b64ea8d..c3e2d1a 100644 --- a/pages/order_food/order_food.vue +++ b/pages/order_food/order_food.vue @@ -282,9 +282,6 @@ uni.reLaunch({ url: '/pages/login/login?type=' + 0 }); - // uni.pro.navigateTo('login/login', { - // type: 0 - // }) } uni.$on('message', this.getMessage) this.$nextTick(() => { @@ -296,9 +293,11 @@ uni.$off('message') }, onShow() { - if (uni.cache.get('token') && uni.cache.get('tableCode')) { - this.productqueryShopIdByTableCode() //获取shop User id - } + setTimeout(() => { + if (uni.cache.get('token') && uni.cache.get('tableCode')) { + this.productqueryShopIdByTableCode() //获取shop User id + } + }, 1000) }, methods: { // 单独获取他的shopUserid