chore: demo page menu management (#5619)

* 添加菜单管理演示页面
This commit is contained in:
Netfan
2025-02-27 01:22:25 +08:00
committed by GitHub
parent 1d8676f456
commit 5e421ce607
18 changed files with 1328 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
import { verifyAccessToken } from '~/utils/jwt-utils';
import { MOCK_MENU_LIST } from '~/utils/mock-data';
import { unAuthorizedResponse, useResponseSuccess } from '~/utils/response';
export default eventHandler(async (event) => {
const userinfo = verifyAccessToken(event);
if (!userinfo) {
return unAuthorizedResponse(event);
}
return useResponseSuccess(MOCK_MENU_LIST);
});