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,16 @@
import { eventHandler } from 'h3';
import { verifyAccessToken } from '~/utils/jwt-utils';
import {
sleep,
unAuthorizedResponse,
useResponseSuccess,
} from '~/utils/response';
export default eventHandler(async (event) => {
const userinfo = verifyAccessToken(event);
if (!userinfo) {
return unAuthorizedResponse(event);
}
await sleep(2000);
return useResponseSuccess(null);
});