🔍 配方查询
📋 管理配方
📦 个人库存
@@ -64,7 +65,7 @@
-
{{ toast }}
+
{{ toast.msg }}
diff --git a/frontend/src/components/LoginModal.vue b/frontend/src/components/LoginModal.vue
index 84f7204..9481c4d 100644
--- a/frontend/src/components/LoginModal.vue
+++ b/frontend/src/components/LoginModal.vue
@@ -104,8 +104,11 @@ async function submit() {
ui.showToast('注册成功')
}
emit('close')
- // Reload page data after auth change
- window.location.reload()
+ if (ui.pendingAction) {
+ ui.runPendingAction()
+ } else {
+ window.location.reload()
+ }
} catch (e) {
errorMsg.value = e?.message || (mode.value === 'login' ? '登录失败,请检查用户名和密码' : '注册失败,请重试')
} finally {
@@ -119,7 +122,7 @@ async function submit() {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.35);
- z-index: 5000;
+ z-index: 6000;
display: flex;
align-items: center;
justify-content: center;
diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue
index d2a6027..02c8d27 100644
--- a/frontend/src/components/RecipeDetailOverlay.vue
+++ b/frontend/src/components/RecipeDetailOverlay.vue
@@ -19,7 +19,7 @@
class="action-btn action-btn-sm"
@click="viewMode = 'editor'"
>编辑
-
+