the scrollBehavior implementation of vue-router is used in the project to navigate to the anchor point, which is already used under history mode. The address bar is already localhost:8080 home basicInfo-sharpvideo, but it is not immediately located but ...
as shown in the figure, are there any ideas or ready-made plug-ins? elementUI looked at it and found that it could not support dynamic component switching. ...
<router-link :to=" detail +userID+ +id" class="peertab" active-class="isactive">< router-link> <router-link :to=" detail +userID+ +id + task "class="peertab" active-class...
[picture] as shown in the figure, the error in the above figure will occur when packing under Linux. There is no problem with packing locally I don t know what the problem is. Ask for advice ...
questions are as follows: : : you can see that the same content area becomes 0 maybe that s why. but why did the content area become 0? about absolute positioning position:absolute is relative to the first parent element in its containi...
I have referenced another component in one component. What can I do to refresh the referenced component when a value changes? or call the destroy method of another component in the current component ...
this is the route: html: : ...
the problem is as follows ajax :header : Home components <template> <div class="home"> <header class="home-header"> header < header> <div class="scroll...
1. The animation is divided into two stages -1-enter the animation -2 from the main page and return to the main page 2. Problem description: when entering the details page from the main page, the main page is destroyed instantly, leaving the details p...
for example, I want to set the information of meta according to type what should I do with it { path: ":type", meta: "detfault" component: (resolve) => require(["@ pages goods list.vue"], resol...
first contact with vue,vue-router < router-view > render blank < router-view > without any error prompt. Here is the code: App.vue <template> <div id="app"> <router-view>< router-view> < div> < tem...
A page-> B page (can return A)-> C page (cannot return B or A) how to achieve this effect? ...
static page error occurs after npm run bulid output main.js Code import Vue from vue import App from . App import VueRouter from vue-router import routes from . router Vue.use(VueRouter) Vue.config.productionTip = false const rout...
in my routes.js : ... children: [ { path: a , name: a , title: a , component: (resolve) => require([ . views a a.vue ], resolve) }, { path: b , name: b , title: b , compo...
I have a total of five pages, using asynchronous route loading, the last four ways are as follows, so that each routing page is loaded on demand, so as not to load too slowly on the first screen. devstyle npm run buildwebpackvuecssimportcssindexcss ...
error content: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data Technology used in the project node+webpack+vue+vue-router reproduction process: the opening page looks like this: " " id the address bar remains...
I am in the .vue file: export default { name: SomeName , beforeRouteLeave(to, from, next) { console.log( beforeRouteLeave ! , this) }, beforeRouteEnter(to, from, next) { console.log( beforeRouteEnter ! ) } } but the guard ...
I don t know what went wrong. The route will not jump after clicking but the path jumps from http: localhost:8080 -sharp to http: localhost:8080 -sharp userinfo the content of the display is blank, and there is something written in it. router...
1. The code looks like this <a-component> <b-component>< b-component> <router-link :to=" a 1 5" replace>< router-link> < a-component> render the contents of the above component through routing-sh...
Brotherhood question link: https: codeshelper.com q 10. displays the text on the home page by default http: localhost:8080 Fen app.vue <template> <div id="app"> <Header>< Header> <div class="...
< H2 > question < H2 > uses draft.js to build a rich text editor. When setting the font size function, a select selection box is used. The effect you want to achieve is that after the cursor selects Chinese text, the value of select becomes the font s...
now some packages use webpack4.x, and some packages still use webpack3.x, to install 3.x prompts you need 4.x, and upgrade to 4.x prompts you to need 3.x. What should I do? ...
routing nesting has a total of three layers first layer: <div class="home"> <router-view>< router-view> < div> second layer: <div class="page1"> <router-view>< router-view...
how does the navbar of mint-ui get the current clicks? what I want to achieve is that users click on different tab to send requests and request different data. Previously, using tabs, in element-ui provided a click event to get the current clicks. I see ...
when you encounter a problem in the process of learning TypeScript, take a look at the following code In the section TypeScript additional type checking, solutions are given to avoid compiler errors in the code. my confusion is, why can this metho...