|
|
|
@ -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: |
|
|
|
|
'当前菜单表是 <b>Vue2版本</b>,导致菜单加载异常!<br>点击确认,切换到Vue3版菜单!', |
|
|
|
|
onOk:function () { |
|
|
|
|
switchVue3Menu(); |
|
|
|
|
location.reload(); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
100 |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
// if (!hasIcon && !hasIndex) {
|
|
|
|
|
// // 延迟1.5秒之后再出现提示,否则提示框出不来
|
|
|
|
|
// setTimeout(
|
|
|
|
|
// () =>
|
|
|
|
|
// createWarningModal({
|
|
|
|
|
// title: '检测提示',
|
|
|
|
|
// content:
|
|
|
|
|
// '当前菜单表是 <b>Vue2版本</b>,导致菜单加载异常!<br>点击确认,切换到Vue3版菜单!',
|
|
|
|
|
// onOk:function () {
|
|
|
|
|
// switchVue3Menu();
|
|
|
|
|
// location.reload();
|
|
|
|
|
// }
|
|
|
|
|
// }),
|
|
|
|
|
// 100
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// update-end----author:sunjianlei---date:20220315------for: 判断是否是 vue3 版本的菜单 ---
|
|
|
|
|
} catch (error) { |
|
|
|
|
console.error(error); |
|
|
|
|