phongdt:header footer

This commit is contained in:
Duong Truong Phong
2024-05-30 22:57:45 +07:00
parent dd09434deb
commit 3b435e22ea
18 changed files with 787 additions and 467 deletions
+11
View File
@@ -0,0 +1,11 @@
import { H3Error} from 'h3'
export function handleError(error: any){
const h3Error = new H3Error('')
h3Error.statusCode = error.statusCode||500
h3Error.statusMessage = error.statusMessage||'Internal Server Error'
h3Error.data = error.data
throw createError(h3Error)
}