From 08c2d5bd75013e1aa1c05a19aa0d0f24a069cf08 Mon Sep 17 00:00:00 2001 From: YoYo Date: Tue, 7 Apr 2026 22:13:42 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AA=E7=99=BB=E5=BD=95=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B9=9F=E6=98=BE=E7=A4=BA=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=8F=90=E7=A4=BA=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=97=B6=E5=BC=95=E5=AF=BC=E7=99=BB=E5=BD=95/=E6=B3=A8?= =?UTF-8?q?=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/RecipeDetailOverlay.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 588132a..d5c9537 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -466,12 +466,16 @@ async function loadBrand() { } } -// Whether to show the brand/QR upload hint +// Whether to show the brand/QR upload hint (show to all users who haven't set up brand assets) const showBrandHint = computed(() => - authStore.isLoggedIn && !!brand.value && !brand.value.qr_code && !brand.value.brand_bg + !!brand.value && !brand.value.qr_code && !brand.value.brand_bg ) function goUploadQr() { + if (!authStore.isLoggedIn) { + ui.openLogin() + return + } if (recipe.value._id) { localStorage.setItem('oil_return_recipe_id', recipe.value._id) }