-
Vue child component, how to query the details according to the id, passed by the parent component and display it in the child component?
if I go to the background to query the details according to the id in the created method of the component, it can be displayed normally without reporting an error, but when the id value of the parent component is changed, it will not be again....
-
The problem of transmitting parameters in vue
now there is a demand like this: click on an item in the commodity list (figure 1), and you will get the id, of the product and then pass it into the commodity details interface (figure 2). After receiving the id of the commodity, the commodity details ...
-
The parameters received by the Vue.js component are lost after the page is refreshed
after refreshing the page, only the parameters of the index received by the parameter id, are lost. What s going on.
...
-
Update content when H5 slides left or right
1. There is a data content [ axiaxiajiaoyuzhong ] content is dynamic [more than 5] when a screen displays only one element in the array and changes the content when it slides on the screen. How should I write this? If you use rotation, do you have any...
-
Can the component corresponding to the route requested by the vue backend take effect?
The project is based on the background management developed by vue, which needs to be controlled by permission classes. The backend says that he will control it. The login has the route requested from the page that can be accessed according to the accou...
-
How does vue apply a skeleton screen to multiple routes?
after reading many articles, the skeleton screen is applied to the first screen rendering. Generally, the skeleton screen is rendered on the-sharpapp node of the index.html page of vue, so once the first screen rendering is completed, the skeleton screen...
-
Abstract routing in vue-router
Is there an abstract route similar to that in angular in vue-router?
{
path:
children:[
{
{
path: demo foo
component:foo
},
{
path: demo bar
...
-
Vue project. When you switch routes, one of the pages jumps to other pages, but the path changes and the content of the page appears very slowly.
When the a page switches to another page, the path changes, but the page content appears very slowly
bforce, c, and other pages jump toward a page with normal speed
the jump between the pages of brecincec li d, the speed is normal < ref >
could...
-
How does vue-router get the active routing elements when the component is initialized?
is to get the element with router-link-active class name, which can be obtained through dom operation. I would like to ask if there is a vue method?
created() {
this.$nextTick(() => {
let activeElement = document.querySelector( .r...
-
The problem of vue-router about subrouting pages passing data to components
problem description
the project writes the route in vue-router. Both the first-level route and the second-level route use the same sub-component. At present, the first-level route can transmit data to the sub-component, but when you click on the secon...
-
Vue to do the navigation bar, left and right buttons, click to scroll to the left and right
problem description
the environmental background of the problems and what methods you have tried
related codes
Please paste the code text below (do not replace the code with pictures)
what result do you expect? What is the error message a...
-
Does the vue encapsulate the fallback function to report an error?
fallback is a common function, so I encapsulated it as a global function
assetes global.js
import Vue from vue
import Router from "vue-router";
Vue.use(Router)
export default({
back:function(){
this.$router.go(-1); ...
-
How nuxt.js nested routes are merged into one route
A home page that needs to distinguish between multiple countries the current directory is like this
index_countrytNameindex
_countryName.vue
the route country in this place can be empty. what s the difference?
...
-
How to solve the problem that vue falls back into an endless cycle?
if the page jump looks like this: A page B page C page B page B page C page
then when I click back, I will fall into the previous action C page "B page " B page "A page
this affects the user experience very much, how to solve this problem gen...
-
What is the reason for $router' of undefined?
there is a requirement: the backend return status code-999 indicates that the token expires and the front end needs to skip to the login page.
my code: http.js
import axios from axios
import Vue from "vue"
import VueRouter...
-
How vue-router calls a method declared in another component
Project uses vue-router , there are component An and component B, the label < router-view > shows component A, and there is an event an in component A that makes the content displayed in < router-view > become component B. how to call event b decla...