using the push method of vue-router, setting the value of meta does not work. The code is as follows: this.$router.push({ path : bookGuide deptList , name : "deptList", meta : { isBack : false }}, ) looked at the document and could...
when registering a route with vue router, component is generated by parsing the md file with vue markdown loader router.component = r => require.ensure([], () => r(require(`.. docs ${router.name}.md`))); the page structure is as follow...
as shown in the figure, variable, no datas.forEach(item => { let newRoute = { path: item.path, name: item.name, meta: { title: item.title, ...
as there are more and more routes, more and more components are introduced into router.js, and each particular page corresponds to a different component. is this a reasonable way to write? It feels weird ...
$router.push-sharp (hash :router.js history ...
when someone randomly enters an address in the address bar, I want to judge whether the path he entered is a valid path, jump if it is a valid path, or jump to the home page if it is not a valid path what if you get all the routes ...
when using redirection. path: parent , redirect: when the redirection rule is set in this way, the page is not redirected but if I set it this way, the page can be redirected again, path: , redirect: parent Why is this? My rou...
The project uses vue+element, and the requirement is to prompt "whether the page is not saved or not to leave " before leaving the page when there is content being edited on the page. I have found two solutions so far, but neither is perfect: first...
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...
data wrapperHeight: 0, mounted mounted () { this.wrapperHeight = 589.5 }, using the nuxt frame to refresh the page can be assigned normally, but the value returned by routing to another page and $router.back (- 1) is 0. use watch to listen ...
problem description when vue router jumps to a page, it occasionally returns to routing when a new window is opened. This problem only occurs after packaging and release . Project is built with vue-cli3.0 the environmental background of the problem...
if you want to use the meta field data in router in other js files or vuex, how to introduce it? import router from . router cannot be used after this introduction ...
vue router adds dynamic route, route jumps normally, and changes to blank page after F5 refresh sources of topics and their own ideas related codes router.beforeEach((to, from, next) => { NProgress.start() if (getToken()) { initMenu(rout...
<template> <div> <div> <nuxt-link class="test" :to="{ path: testNuxtLink 1 }" :key=" a ">< nuxt-link> <br > < div> <div> <nuxt-link c...
two pages: list and cart,list pages add shopping carts to vuex, use vue-router to jump to cart to modify the number of newly added items without updating the data, but the data in localStorage has been changed, you can modify the existing data, and refr...
Wechat official account project, the link to the custom menu is to jump to the personal information page of the project. does the logic in main.js. If you don t log in, you will jump to the login page, and then jump to the personal information page aft...
vue single page project, developed by Wechat official account. the front page is a list of information, which is returned by obtaining the official account in the background. The returned information contains a url that jumps to the details (only this ...
the project structure is the original demo, built by vue-cli. The purpose of the demo, is to test the component development of vue + element-ui and to use it in the background development. expectation: the parent component loads each child component...
in Vue-router, you can set keep-alive to keep components from being destroyed, which is good for recording user form submissions and multiple filters. similar requirements are encountered in the angular4 project. Currently, we can only use a large num...
I want to try to write breadcrumb navigation by myself. I would like to ask the gods, I need to, for example, I have a breadcrumb navigation is a > b > c, so do I need to configure b and c as sub-routes of an according to this relationship? what is the ...
the project requires the implementation of a date grouping function in Wechat s moments: as shown in the figure above, it includes grouping by year, grouping content on the same day, and supporting paging. Now the data returned by the background is...
how should I add this hint? using the window.onbeforeunload = function () {} method is just a system prompt, and the prompt you want to add cannot display do you have any good solutions? ...
I have multiple servers in Aliyun. If the ip is 154.125.15.12 and 154.125.15.13, then what should the virtual ip be? you can resolve the virtual ip through the domain name ....
my project package was originally placed under GOPATH, and then I learned to use glide today. After installing glide, I deleted the package used in GOPATH first. (to see the effect) the project directory structure is as follows glide initglide.yml ...
where is the crash log for ie? ...