From c33f1db0cdfefb24a83653b3f9336dc5480766a7 Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Wed, 10 Jul 2024 18:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=89=88=E6=9C=AC=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/permission.ts | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/jeecgboot-vue3-master/src/store/modules/permission.ts b/jeecgboot-vue3-master/src/store/modules/permission.ts index ac4fcdf7..1577cc27 100644 --- a/jeecgboot-vue3-master/src/store/modules/permission.ts +++ b/jeecgboot-vue3-master/src/store/modules/permission.ts @@ -206,7 +206,7 @@ export const usePermissionStore = defineStore({ // 后台菜单构建 case PermissionModeEnum.BACK: - const { createMessage, createWarningModal } = useMessage(); + // const { createMessage, createWarningModal } = useMessage(); // 菜单加载提示 // createMessage.loading({ // content: t('sys.app.menuLoading'), @@ -237,22 +237,22 @@ export const usePermissionStore = defineStore({ } } // 两个条件都不满足,就弹出提示框 - if (!hasIcon && !hasIndex) { - // 延迟1.5秒之后再出现提示,否则提示框出不来 - setTimeout( - () => - createWarningModal({ - title: '检测提示', - content: - '当前菜单表是 Vue2版本,导致菜单加载异常!
点击确认,切换到Vue3版菜单!', - onOk:function () { - switchVue3Menu(); - location.reload(); - } - }), - 100 - ); - } + // if (!hasIcon && !hasIndex) { + // // 延迟1.5秒之后再出现提示,否则提示框出不来 + // setTimeout( + // () => + // createWarningModal({ + // title: '检测提示', + // content: + // '当前菜单表是 Vue2版本,导致菜单加载异常!
点击确认,切换到Vue3版菜单!', + // onOk:function () { + // switchVue3Menu(); + // location.reload(); + // } + // }), + // 100 + // ); + // } // update-end----author:sunjianlei---date:20220315------for: 判断是否是 vue3 版本的菜单 --- } catch (error) { console.error(error);