From 533cd2a0bd41115bcd48c153346c89d9e09ab8fe Mon Sep 17 00:00:00 2001 From: YoYo Date: Wed, 8 Apr 2026 19:41:04 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E5=86=8D=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=EF=BC=8C=E7=94=B1=E7=94=A8=E6=88=B7=E6=89=8B=E5=8A=A8=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=BF=94=E5=9B=9E=E9=85=8D=E6=96=B9=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: YoYo --- frontend/src/views/MyDiary.vue | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/frontend/src/views/MyDiary.vue b/frontend/src/views/MyDiary.vue index 95a5c60..e8b245c 100644 --- a/frontend/src/views/MyDiary.vue +++ b/frontend/src/views/MyDiary.vue @@ -428,18 +428,7 @@ async function handleUpload(type, event) { if (res.ok) { if (type === 'logo') brandLogo.value = base64 else if (type === 'bg') brandBg.value = base64 - else if (type === 'qr') { - brandQrImage.value = base64 - // If user came here from a recipe card, navigate back - const returnRecipeId = localStorage.getItem('oil_return_recipe_id') - if (returnRecipeId) { - localStorage.removeItem('oil_return_recipe_id') - ui.showToast('二维码已上传,返回配方卡片 ✨') - await new Promise(r => setTimeout(r, 800)) - router.push('/?openRecipe=' + encodeURIComponent(returnRecipeId)) - return - } - } + else if (type === 'qr') brandQrImage.value = base64 ui.showToast('上传成功') } } catch {