Fix code formatting and error handling
This commit is contained in:
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user