chore: 初始化租户端(vben web-ele)

This commit is contained in:
msumshk
2026-01-29 04:21:46 +00:00
commit 819b46fa65
1642 changed files with 133829 additions and 0 deletions

View File

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