From 70d6ad01b6231dcbb66bfb573dca372c73ad39a8 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Thu, 16 May 2024 19:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E4=BD=8F=E8=8F=9C=E5=8D=95=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/store/modules/menu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-ui/src/store/modules/menu.js b/ruoyi-ui/src/store/modules/menu.js index cfad661f..0af83a09 100644 --- a/ruoyi-ui/src/store/modules/menu.js +++ b/ruoyi-ui/src/store/modules/menu.js @@ -27,6 +27,7 @@ const state = { state.recentPages.push(item); } else { let i = state.recentPages.findIndex(unit => unit.path == item.path); + item.isPinned = state.recentPages[i].isPinned state.recentPages[i] = item; } mutations.saveRecent(state);