Skip to content

Commit 9ebd436

Browse files
committed
fix: cannot redirect to app
1 parent bdefed6 commit 9ebd436

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/pages/checkout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { PaymentStatus } from '@base/server/db/schemas'
55
definePageMeta({
66
middleware(to) {
77
if (!to.query.qr) {
8-
return navigateTo({ name: 'pricing' })
8+
return navigateTo({ path: '/pricing' })
99
}
1010
},
1111
})
@@ -46,7 +46,7 @@ whenever(error, (err) => {
4646
4747
whenever(data, (response) => {
4848
if (response?.data?.status === PaymentStatus.RESOLVED) {
49-
navigateTo({ name: 'app' })
49+
navigateTo({ path: '/app' })
5050
}
5151
else {
5252
notifyError({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thecodeorigin/nuxt",
33
"type": "module",
4-
"version": "2.6.2",
4+
"version": "2.6.3",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org",
77
"access": "public"

0 commit comments

Comments
 (0)