All Questions
Tagged with vue-router javascript
1,945 questions
0
votes
0
answers
29
views
Nuxt 3 NuxtLink Not Redirecting Properly, Only <a> Tags Work
I'm working on a Nuxt 3 project, and I'm experiencing an issue where NuxtLink components are not redirecting properly. Clicking on a NuxtLink does not navigate to the desired route, but using a ...
0
votes
0
answers
19
views
Nuxt not recognizing directory in interpolated route
I am attempting to create an image link in Nuxt component
<NuxtLink
v-if="player?.image_url"
:to="`/players/${player.slug}`"
>
&...
1
vote
1
answer
37
views
Declaring object.prototype in js - VueRouter it automatically calls a method
I declared an extension method for objects by creating my own function. However, I do not call or import it anywhere. As a result, I get an exception. How can I fix this? I don't recall such behavior ...
0
votes
0
answers
37
views
Product Detail page not routing in vue js
I have a product list page and productdetails page. When I click on the card of the product,it should go to that product detail page with the ID passed, but it doesnt happen.
I have two console.log. ...
0
votes
0
answers
56
views
"NetworkError when attempting to fetch resource" with vue router 4, vue 3 and vuex 4
after an update, going from ‘vue js 2’ to ‘vue js 3’, ‘vue-router 3’ to ‘vue-router 4’ and ‘vuex 3’ to ‘vuex 4’, I'm trying to fix my code so that it all works with Laravel.
This code worked before ...
-1
votes
1
answer
35
views
I dont have VueRouter or Router from 'vue-router' [closed]
I dont know how to make a web router in vue because im a beginner, so in every tutorial, i see that they import router or vuerouter from 'vue-router'
What i've already tried? i ran npm install vue-...
0
votes
0
answers
53
views
TypeError: u.then is not a function in Vue3+Vue router
Console Error
TypeError: u.then is not a function
at index-CyodobdF.js:26:14273
at Object.runWithContext (index-CyodobdF.js:14:10931)
at we (index-CyodobdF.js:26:19934)
at index-...
0
votes
1
answer
78
views
Data Lost Between Routes in Vue.js on Refresh
I'm working on a Vue.js application using Vue Router and Axios to fetch user data. I have two pages: /dashboard and /dashboard/me. The data for the /dashboard page is successfully loaded and displayed,...
0
votes
0
answers
25
views
VueJS/Vue Router/Firebase - router.push() loads new page temporarily, then immediatley goes back to the Register page
I have a page that allows a user to register an account. Upon clicking submit, the user should be redirected to a Library page. However, what is happening is the Library page will flash on the screen ...
0
votes
2
answers
52
views
ARGON dashboard router / problems adjusting the routes
I'm having problems customizing the routes.js. I would like to go directly to the login (Login.vue) when I initially call it with / or /login. How can I customize the default routes.js correctly? The ...
0
votes
0
answers
99
views
Vue router suspense triggers the first time but not the second time
so I followed the Vue docs and created a wrapper for the pages so that I can use top-level await. The first time the page is loaded, it works correctly and shows me the spinner. the second time I come ...
1
vote
0
answers
539
views
Pinia Store caching state values
I face an issue with my Pinia store and its router guard. When I go through the 'logout' function that basically does the following, everything comes into place.
The logout function in auth.js Pinia ...
0
votes
1
answer
68
views
How to catch routing errors when creating props for a component
I'm trying to catch errors that might occur when parsing route parameters to pass to a component. For instance, component A requires a URL object and the router creates the object from the route ...
2
votes
2
answers
122
views
How to add function to prototype of an interface that is actually a class?
It is easy to add add function to prototype of a value, for example:
Array.prototype.removeAt = function (index) {
if (index >= 0 && index < this.length) {
this.splice(index, 1);
...
0
votes
0
answers
13
views
how to handle validate form to next page use vue router
a form after validate must go to next author page with vue-Router using this code but not validate
<form @submit.prevent="handlesubmit">
<div class="row">...