We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
definePage()
Contribution welcome!
Originally posted by whoooami February 15, 2024 i tried add it inside 1 or 2 position, but doesn't work.
import { defineComponent, ref } from 'vue' import { useRoute } from 'vue-router' import { definePage } from 'vue-router/auto' export default defineComponent({ setup() { // your setup code here // 1 position. //definePage({ // name: 'index', // meta: { // layout: 'home' // } //}) const user = useUserStore() const name = ref(user.savedName) // eslint-disable-next-line unused-imports/no-unused-vars const route = useRoute() const router = useRouter() function go() { if (name.value) router.push(`/hi/${encodeURIComponent(name.value)}`) } const { t } = useI18n() return () => ( <> <div> <div text-4xl> <div i-carbon-campsite inline-block /> </div> </div> </> ) }, }) // 2 position. definePage({ name: 'index', meta: { layout: 'home' } }) ```</div> ---
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Contribution welcome!
Discussed in #314
Originally posted by whoooami February 15, 2024
i tried add it inside 1 or 2 position, but doesn't work.
The text was updated successfully, but these errors were encountered: