mirror of
https://github.com/jeecgboot/ant-design-vue-jeecg.git
synced 2026-02-27 01:01:47 +08:00
增加提示:检查到当前菜单表是Vue3版本,导致菜单加载异常,请切换到Vue2版菜单!参考:http://doc.jeecg.com/3075165
This commit is contained in:
@@ -126,6 +126,18 @@ const user = {
|
||||
GetPermissionList({ commit }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
queryPermissionsByUser().then(response => {
|
||||
|
||||
// update-begin----author:scott---date:20221018------for: 判断是否是 vue3 版本的菜单,给予提示 ---
|
||||
let routeList = response.result.menu;
|
||||
var findVue3Menu = routeList.find(item => {
|
||||
return item.component === 'layouts/default/index';
|
||||
});
|
||||
if (findVue3Menu) {
|
||||
console.error("启动失败: 检查到当前菜单表是Vue3版本,导致菜单加载异常,请切换到Vue2版菜单!参考:http://doc.jeecg.com/3075165")
|
||||
}
|
||||
// update-end----author:scott---date:20221018------for: 判断是否是 vue3 版本的菜单,给予提示 ---
|
||||
|
||||
|
||||
const menuData = response.result.menu;
|
||||
const authData = response.result.auth;
|
||||
const allAuthData = response.result.allAuth;
|
||||
|
||||
Reference in New Issue
Block a user