自动切换vue3菜单功能

pull/170/head^2
zhangdaiscott 2022-09-22 14:04:59 +08:00
parent 65af3c3804
commit e68309d8e6
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { getMenuListResultModel } from './model/menuModel';
enum Api {
GetMenuList = '/sys/permission/getUserPermissionByToken',
SwitchVue3Menu = '/sys/switchVue3Menu',
}
/**
@ -21,3 +22,12 @@ export const getMenuList = () => {
});
});
};
/**
* vue3
*/
export const switchVue3Menu = () => {
return new Promise((resolve) => {
defHttp.get({ url: Api.SwitchVue3Menu });
});
};