async and await usage
async and await are used in 21 Vue to realize synchronization and asynchrony The scenario is as follows: the current logic is to modify the series.data in echart's option according to the return data of the back-end API, and then execute the setOption method to render the icon. However, the problem is that the back-end API can return data norma ...
Added by Panz3r on Wed, 22 Sep 2021 11:22:20 +0300
Relearn vue - what are the common instructions for vue?
1, What are instructions?
In vue, the instruction starts with v -, which is a special custom inter line attribute. The expected value of the instruction attribute is an expression. The responsibility of the instruction is to apply some behaviors to the DOM accordingly when the value of the expression changes. Only v-for is outside a class, fol ...
Added by Rovas on Wed, 22 Sep 2021 06:26:49 +0300
Vue3 E-commerce Project===> What you don't know!!!
Preface
It feels good to write a widget in your project today and share it with you. If you need to use it later, just take a look at this blog
Let's start with the concept of SKU and SPU:
SPU (Standard Product Unit) Standardized Product Unit. It is the smallest unit of aggregation of commodity information. It is a set of reusable, easily re ...
Added by jokobe on Tue, 21 Sep 2021 20:27:19 +0300
Simple use of vuex
What is Vuex?
Vuex is a state management pattern developed specifically for Vue.js applications. It uses centralized storage to manage the state of all components of the application, and uses corresponding rules to ensure that the state changes in a predictable way. Vuex is also integrated into Vue's official debugging tool devtools extension ...
Added by cpetercarter on Mon, 20 Sep 2021 10:22:12 +0300
Summary of new features of vue3.0
Vue 3.0 It was finally released on September 18, 2020 and has been used Typescript A large-scale reconstruction has been carried out, which has brought Composition API RFC Version, similar React Hook Write Vue in the same way. You can customize your own hook to make users more flexible.
Some new features of vue 3.0.
setup()ref()reactive()isRe ...
Added by messels on Fri, 17 Sep 2021 22:23:33 +0300
Teach you how to encapsulate general axios in vue project
Teach you how to encapsulate general axios in vue project
preface
Tip: Here you can add the general contents to be recorded in this article: For example, with the continuous development of artificial intelligence, machine learning technology is becoming more and more important. Many people have started learning machine learning. This pa ...
Added by Trip1 on Sun, 12 Sep 2021 10:54:06 +0300
The details page returns to the current position of the list page
Using keepAlive
stay app.vue Two in Chinese
<keep-alive>
<! -- view components that need to be cached -- >
<router-view v-if="$route.meta.keepAlive">
</router-view>
</keep-alive>
<! -- view components that do not require caching -- >
<router-view v-if="!$ ...
Added by aouriques on Tue, 30 Jun 2020 07:37:12 +0300
With all due respect, you may not be able to use java Part 7: sorting collections like SQL
Before I start, let me ask you a question: we now have an Employee class.
@Data
@AllArgsConstructor
public class Employee {
private Integer id;
private Integer age; //Age
private String gender; //Gender
private String firstName;
private String lastName;
}
Do you know how to sort a List set of Employee objects in reverse or ...
Added by mjh513 on Sun, 28 Jun 2020 03:41:37 +0300
How to Design a Privilege Authorization Service in Microservices
Role-based access control (RBAC)
One way to restrict system access to authorized users is to define policy-independent access control mechanisms around roles and privileges, and the components of RBAC make it easy to perform user assignments.
Within the organization, various jobs will be created role .Permissions to perform certain actions ha ...
Added by fordyh on Fri, 26 Jun 2020 04:14:55 +0300
nextTick's practice in the project
preface
In a project, it is often necessary to display data at the view level immediately. Sometimes, because of asynchronous data transfer, the page will not be displayed immediately on the page. In this case, you need to use the nextTick method provided by Vue. The main reason is that Vue's data vi ...
Added by ivki on Thu, 25 Jun 2020 14:18:22 +0300