vue routing path update page does not switch

The switching of Vue router is different from the traditional page switching. The switching between routes is actually the switching between components, not the real page switching. This will also lead to a problem, that is, when the same component is referenced, the component cannot be updated, that is, the page in our mouth cannot be updated. ...

Posted by UseeHere on Sat, 15 Jan 2022 20:44:07 +0100

VUE - 9. Routing (secondary routing, route interception), axios

catalogue  8. Secondary routing (1) Routing configuration (2) Secondary route rendering 9. Route interception (12)axios 1.get request 2.post request 3.axios global introduction (rarely used, 4 questions) 4.axios request interception encapsulation 5. Processing method of asynchronous data failure  8. Secondary routing ...

Posted by Harsh on Sat, 15 Jan 2022 03:46:59 +0100

vue component development

preface In vue component development (1), the communication between parent and child components is introduced. In addition to the communication between parent and child components, there is also the communication between brother components. The so-called brother component refers to the use of two brother components a and B in the same componen ...

Posted by Alphamonkey on Fri, 14 Jan 2022 01:00:08 +0100

Vue3 component example project - pie chart component

catalogue 1. Pie chart component chart pie doughnut 2. Use of chart pie doughnut 1. Pie chart component chart pie doughnut Effect display: Data type required for import (officially defined by Echarts) import * as echarts from 'echarts'; import { EChartsOption as EchartsOptions, PieSeriesOption } from 'echarts/types/src/export/opti ...

Posted by pennythetuff on Thu, 13 Jan 2022 23:38:39 +0100

25 Vue skills have been developed for 5 years, and some of them are the first time to see you!

By Michael Thiessen Translator: front end Xiaozhi Source: dev There are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning. This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials ...

Posted by pastijalan on Thu, 13 Jan 2022 23:26:10 +0100

Principle and implementation of bidirectional binding of vue

Principle: vue data bidirectional binding is realized through data hijacking combined with publisher subscriber mode Let's first take a look at how to output an object structure defined on vue initialization data through the console var vm = new Vue({ data: { obj: { a: 1 } }, created: function () { ...

Posted by crzyman on Thu, 13 Jan 2022 21:35:19 +0100

How to teach you to use Vuex

Let's briefly introduce vuex. What is this? First, if you want to know about a technology, go to its official website. It must be true. When you enter the official website, you will see "what vuex is": As shown in the figure, it is a state management mode in a program. It is a small warehouse that centrally stores the state of all ...

Posted by chris.zeman on Thu, 13 Jan 2022 08:44:26 +0100

Realization of Animation Effect in vue

1. Realization of Transition Animation 1, no transition, direct change <template> <div class="testBox"> <div class="testCon" :style="{ width: width + 'px' }"></div> <div class="testBtn" @click="clickBtn">Click the button</div> </div> </template> <script setup> import { ref } f ...

Posted by mnewbegin on Wed, 12 Jan 2022 20:05:32 +0100

Communication between vue components

Six ways of communication between vue components 1. props and $emit (child triggers parent), ref (parent calls child) The props keyword is generally used to transfer data from the parent component to the child component. The child component passes data to the parent component. Generally, $emit is used to trigger the event of the parent compon ...

Posted by lady_bug on Wed, 12 Jan 2022 10:09:50 +0100

Introduction to Vue actual combat

vue actual combat 1. Vue introduction Progressive JavaScript framework -- Excerpted from the official website Progressive Easy to use: already know HTML, CSS and JavaScript, read the guide now and start building applications!Efficiency: a thriving ecosystem can scale freely between a library and a complete frameworkFlexible: 20kB min+gzip ...

Posted by kdreg on Wed, 12 Jan 2022 08:33:38 +0100