update
This commit is contained in:
@ -10,7 +10,7 @@ if (!slug) {
|
||||
return Astro.redirect('/404');
|
||||
}
|
||||
|
||||
const {code, data} = await newsDetail(slug);
|
||||
const {code, data} = await newsDetail(slug, config);
|
||||
|
||||
if (!data || code !== 0) {
|
||||
return Astro.redirect('/404');
|
||||
|
Reference in New Issue
Block a user