From 639caadc46f0ecd99d65df0319045dfbe1e3e4d2 Mon Sep 17 00:00:00 2001 From: lilinyuan <1084668738@qq.com> Date: Thu, 9 May 2024 17:32:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/permisstion.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/stores/permisstion.js b/src/stores/permisstion.js index 2a90914..e1864fe 100644 --- a/src/stores/permisstion.js +++ b/src/stores/permisstion.js @@ -107,7 +107,17 @@ export const usePermisstionStroe = defineStore('permisstion', () => { } const removeMenu = () => { - menuList.value.length = 0 + menuList.value = [ + { + name: 'home', + path: '/home', + icon: 'home', + title: '首页', + meta: { + breadcrumb: true + } + } + ] asyncRouters.value.length = 0 }