From 2de28da0553e4acd99fc1bde2052e45e0947f0af Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Tue, 18 Mar 2025 17:15:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=97=E9=93=BA=E4=BF=A1=E6=81=AF=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E5=B0=B1=E9=A4=90=E7=B1=BB=E5=9E=8B=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user.ts | 1 + src/views/tool/Instead/index.vue | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/api/system/user.ts b/src/api/system/user.ts index 5c11ef6..223ad79 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -238,6 +238,7 @@ export interface UserInfo { /** 店铺logo */ logo: string; + eatModel: string; [property: string]: any } diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index 1c62f9f..f437e68 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -595,6 +595,9 @@ watch( ); function dinerDisabled(item, index) { + if (!shopUser.userInfo.eatModel) { + return true; + } if (index == 0) { return !shopUser.userInfo.eatModel.includes("dine-in"); }