feat: 新功能改进 #20
@@ -1264,7 +1264,9 @@ function onTagPickerSave(tags) {
|
||||
|
||||
watch(() => recipeStore.recipes, () => {
|
||||
if (auth.isAdmin) {
|
||||
const pending = recipeStore.recipes.filter(r => r._owner_id && r._owner_id !== auth.user.id)
|
||||
const pending = recipeStore.recipes
|
||||
.filter(r => r._owner_id && r._owner_id !== auth.user.id)
|
||||
.map(r => ({ ...r, _showAssign: false, _assignTo: '' }))
|
||||
pendingRecipes.value = pending
|
||||
pendingCount.value = pending.length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user