feat: 编辑器对齐+审核记录+UI调整
- 新增/编辑配方编辑器与配方卡片编辑界面完全一致(含容量与稀释) - 自定义滴数/稀释比例框缩小,应用按钮放在稀释比例同一行 - 管理员可查看所有审核记录(采纳/拒绝历史) - 标签筛选和全选按钮对所有用户可见 - 我的配方/公共配方库均可折叠 - viewer 看配方卡片无编辑按钮 - diary 配方卡片无编辑按钮 - 退出登录跳转首页并刷新 - 新增 /api/recipe-reviews 端点 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -400,6 +400,7 @@ const displayRecipe = computed(() => {
|
||||
})
|
||||
|
||||
const canEditThisRecipe = computed(() => {
|
||||
if (props.isDiary) return false
|
||||
if (authStore.canEdit) return true
|
||||
return false
|
||||
})
|
||||
|
||||
@@ -163,11 +163,7 @@ function handleLogout() {
|
||||
auth.logout()
|
||||
ui.showToast('已退出登录')
|
||||
emit('close')
|
||||
if (router.currentRoute.value.meta.requiresAuth) {
|
||||
router.push('/')
|
||||
} else {
|
||||
window.location.reload()
|
||||
}
|
||||
window.location.href = '/'
|
||||
}
|
||||
|
||||
onMounted(loadNotifications)
|
||||
|
||||
Reference in New Issue
Block a user