neeopy
neeopy
NNuxt
Created by neeopy on 7/2/2024 in #❓・help
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?
1 replies