as shown in the figure, index.vue is the main route under the assets path, and it is also the parent component of all child routes. Other components under the assets are all child routes (sub-components). When the page reaches this page, only the ind...
the code is as follows: const homepage = {template: "-sharphome-page",mounted:function () { vm.homeInit() }}; const router = new VueRouter({ routes: [ {path: , component: homepage}, {path: ...
Login successfully dynamic routing router.addRoutes is normal, but F5 refresh, always blank screen, read a lot of materials, login successfully saved the permission list in sessionStorage TOTAL, how to solve in app.vue if (Cookies.get( SIGN )) { ...
After F5, where to use router.addRoutes ...
< H1 > there was a problem using vue-router as a navigation bar < H1 > < H2 > the navigation bar looks something like this < H2 > user user-profile rootePath topic topic-new < H2 > We are sure that we did assign a value to rootePath i...
while learning, vue2x, encounters the following examples when using vue-router components: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=&q...
for projects written in vue, both editing and adding are on the same page, but the difference between whether to bring out the data by default but after writing the editing function, we found that after clicking on the edit to enter the page, after cli...
how can I directly access render2 this route? const routes = [{ path: , redirect: index }, { path: index , component: Index, meta: { keepAlive: true }, children: [{ path: preview , component: PreView, childre...
question now the requirement is to package a piece of code, but for multiple projects, it is packaged and put directly locally, and tested with tomcat services. For example, http: localhost:39090 segment fault a main http: localhost:39090 seg...
for example, how to render name and age in data to homepage template? < hr > var vm = new Vue({ el: -sharpapp , router,data: { name: "A", age: 20,link:"" } }); const router = new VueRouter({ routes: [ {path: , c...
after jumping to the order page, click to return to the current page, but can not keep the item selected, how to solve? <template> <div> <ul> <li class="bookItem" v-for="item in bookList...
because all the content here is output by the background rich text editor the rest of the images are normal, only this one. what to do? can only upload normal size when uploading pictures? ...
user user list user details by default, only second-level routing can be displayed in the router-view in the first-level routing component. The component wants to display the interface of third-level routing in the first-level routing. Is it pos...
<el-button type="primary" @click.stop="onOrder"><router-link to=" book bookMoney">< router-link>< el-button> Why can t it be displayed like this? < el-button type= "primary " @ click.st...
the function to be implemented is to select a yard model from page1, jump to page2, selection and pass the value to page1. the problem now is that when you return to page1, it refreshes the page and erases the rest of the data. what should I do with ...
< H2 > is recently developing a SPA project for vue2+vue-router. Ask for advice. The questions are as follows: < H2 > there are three pages, home page A, selection page B, and new page C; route switching is all $router.push operation, and mode is the...
vue.js first login website click the keyboard enter key will cause the page route to jump to the root path, refresh the page and then press enter will not jump, this is how to return a responsibility? the following is my route interception Route i...
the main.js file is as follows. There is no problem with the loaded image path import Vue from vue import App from . App import ElementUI from element-ui ; import VueLazyload from vue-lazyload import Vuex from . vuex store import ....
Why do I report an error as soon as I open the comments on beforeEach? import Vue from vue import App from . App import ElementUI from element-ui ; import VueLazyload from vue-lazyload import Vuex from . vuex store import . global....
however, background configuration support is required for this mode to play well. Because our application is a single-page client application, if the background is not configured correctly, when the user accesses http: oursite.com user id directly in ...
problem description webpack is not compiled in the production environment, but the local environment compilation is 17.5m. put it on the server and run it. It won t load at all. It s always a white screen. I hope there is a way to make my project a...
Uncaught TypeError: Cannot read property items of undefined neither this.items nor items can read it, and the strange thing is that the items in type==1 can be read into data using this.items, but not in type==2. I don t know why I < button type...
some projects have .vscode, and some projects don t. Why? ...
as follows, it is the source code in the drawer of antd. The Consumer of DrawerContext in the code actually wraps the Provider,. Isn t it all Provider that wraps Consumer? how do you understand it? here ...
when crawling a web page, the source code cannot be crawled, and < noscript > Javascript is required. is displayed. Please enable javascript before you are allowed to see this page. < noscript > went to the forum to search for the question, and foun...