Fix code formatting and error handling

This commit is contained in:
wangqiao
2025-08-27 16:31:23 +08:00
parent dc628e3494
commit 0f96406b5a
3 changed files with 21 additions and 19 deletions

View File

@ -162,13 +162,13 @@
return []
})
if (!projectTypeList.value?.length) {
throw createError({
statusCode: 404,
statusMessage: 'Page Not Found',
fatal: true,
})
}
// if (!projectTypeList.value?.length) {
// throw createError({
// statusCode: 404,
// statusMessage: 'Page Not Found',
// fatal: true,
// })
// }
const { data: hotTopList, refresh: getHotTop } = useAsyncData('hotTop-PopularDrawings-popularDrawings', async () => {
const res = await hotTop({