From 2daca9ab01e14f2685b69063dacf51f51398ddff Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 22:53:29 +0800 Subject: [PATCH] Update LayoutTag.js --- themes/NEXT/LayoutTag.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/themes/NEXT/LayoutTag.js b/themes/NEXT/LayoutTag.js index 47d0580b..2e7addfc 100644 --- a/themes/NEXT/LayoutTag.js +++ b/themes/NEXT/LayoutTag.js @@ -15,13 +15,9 @@ export const LayoutTag = (props) => { type: 'website' } - // 将当前选中的标签置顶🔝 - const currentTag = tags?.find(r => r?.name === tag) - const newTags = currentTag ? [currentTag].concat(tags.filter(r => r?.name !== tag)) : tags.filter(r => r?.name !== tag) - return - +