N
Nuxt6mo ago
neeopy

definePageMeta isn't working in my TSX component

// pages/account/index.tsx
const AccountPage = defineComponent({
setup() {
definePageMeta({ layout: 'account' });
},
render() {
return (
<div>a</div>
)
}
});

export default AccountPage;
// pages/account/index.tsx
const AccountPage = defineComponent({
setup() {
definePageMeta({ layout: 'account' });
},
render() {
return (
<div>a</div>
)
}
});

export default AccountPage;
Is there another way to do this using TSX?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server