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"); }