We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
useApi
query
1 parent 76a0129 commit d222e15Copy full SHA for d222e15
1 file changed
frontend/pages/reset-password.vue
@@ -37,14 +37,9 @@ async function requestPasswordReset() {
37
}
38
39
const passwordResetResponse = await useApi("/password-reset", {
40
- query: {
41
- // Using a getter makes refreshing the request use the current token value.
42
- // I'd use a simple arrow function instead, but that isn't supported
43
- // (despite the types saying it is, which is a Nuxt bug).
44
- get token() {
45
- return route.query.token;
46
- },
47
+ query: computed(() => ({
+ token: route.query.token,
+ })),
48
49
immediate: route.query.token !== undefined,
50
0 commit comments