From e3dce4ae2ef7e5c575cf1a31251e687a9a3fd7eb Mon Sep 17 00:00:00 2001
From: shizhong <124974919@qq.com>
Date: Tue, 13 Jun 2023 13:41:16 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=EF=BC=9A?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B7=E6=96=B0=E8=8F=9C=E5=8D=95=E7=BC=93?=
=?UTF-8?q?=E5=AD=98=E6=8C=89=E9=92=AE=EF=BC=8C=E6=8F=90=E9=AB=98=E6=98=93?=
=?UTF-8?q?=E7=94=A8=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/menu/index.vue | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index 0604aa93..594a27e1 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -11,6 +11,7 @@
v-hasPermi="['system:menu:create']"
@click="handleCreate()"
/>
+
@@ -348,4 +349,18 @@ const submitForm = async () => {
const isExternal = (path: string) => {
return /^(https?:|mailto:|tel:)/.test(path)
}
+
+/** 刷新菜单缓存按钮操作 */
+const refreshMenu = () => {
+ ElMessageBox.confirm('即将更新缓存刷新浏览器!', '刷新菜单缓存', {
+ confirmButtonText: t('common.ok'),
+ cancelButtonText: t('common.cancel'),
+ type: 'warning'
+ }).then(() => {
+ // 清空,从而触发刷新
+ wsCache.delete(CACHE_KEY.ROLE_ROUTERS)
+ // 刷新浏览器
+ location.reload()
+ })
+}