Introduction of redux state management framework zoro
I am a long-term user of DVA framework. I like the encapsulation of redux by DVA very much. But I encounter a lot of problems which are not easy to handle in the process of using dva. So I write a set of dva-like libraries by myself and try to solve the shortcomings in the process of using dva. Later, I will introduce the problems ...
Posted by gojakie on Mon, 06 May 2019 03:25:39 -0700
Building mobile terminal shelf with perfect function based on vue-cli3.0
The main functions of mobile terminal shelf based on vue-cli3.0 include
Web pack packaging extension
Css: sass support, normalize.css, _mixin.scss, _variables.scss
vw, rem layout
Cross domain setup
eslint settings
Introduction of cdn
Routing Design, Logon Interception
axios, api design
vuex state management
Project address: vue-cli3-H5demo ad ...
Posted by justravis on Tue, 23 Apr 2019 09:15:34 -0700
Detailed Explanation of Vue & Vuex Practice
With the increase of application complexity, we need to consider how to manage the state of the application, separate the business logic from the interface interaction, and discuss in detail with reference to the author's. 2016 - My Front-end Road: Tooling and Engineering . Vue provides us with a convenient mechanism for state management withi ...
Posted by Haggen on Thu, 18 Apr 2019 16:15:33 -0700
nginx configuration vue h5 history removal
The default configuration of vue is to use hash mode, so we all have a # number when we visit, and pay back the callback address or other reasons not to support # or dislike # mode. The advantage arises that the # number needs to be removed, so the vue side needs to configure the mode, and use lazy loading. The configuration of ...
Posted by [Demonoid] on Thu, 28 Mar 2019 17:00:30 -0700
Dynamic loading routing when vue-router sets permissions
There are several dynamic load routing schemes
The front end sets its own routing table according to different users.
Back-end brothers set up routing tables, front-end request interface to get the routing table
The first method is adopted in this paper.
A general idea:
Setting up different routing tables
Store part of user r ...
Posted by robindean on Tue, 26 Mar 2019 18:54:30 -0700
vue+node full stack mobile mall [4] - create get, send interface, receive data update view
In the previous section, we implemented the first interface and received the return {a:123} when requesting the interface. Next, we implemented a simple get and set interface and updated the page view with the returned data.
This is the page view we want to implement. The code is as follows.
<template>
<div>
<h1>{{ msg ...
Posted by dsnhouse on Wed, 13 Feb 2019 03:27:18 -0800
Axios data requests post and node for reference, and json is processed in node
hello, I'm Yang Xiaobao. After months of learning, vue finally came to interact with the background data, but I met some problems in data interaction. I'll write down these problems today for future use!!!
The get request for axios is written as follows:
axios.get('/user',{
params:{
ID:12345
}
})
.then(function(response){
console ...
Posted by jsinker on Tue, 12 Feb 2019 11:54:18 -0800
Examples of axios processing http sending requests in vue (Post and get)
axios Chinese Documents: https://github.com/mzabriskie/axios#using-applicationx-www-form-urlencoded-format
1. Installation
node approach
npm install axios
Set index.js:
import axios from 'axios'
Vue.prototype.$ajax = axios
Or use cdn
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
2.get request
// Ma ...
Posted by mk_silence on Thu, 07 Feb 2019 00:15:17 -0800
How does Axios cancel a sent request?
Recently, I encountered a problem that if the second request is faster than the first one when sending the same request in succession, then the data of the first request is actually displayed, which will result in inconsistency between the data and the content I choose. Solution: When subsequent requests are sent, determine whe ...
Posted by dcgamers on Wed, 30 Jan 2019 00:03:16 -0800
8-vue Django restful framework to create fresh supermarket-commodity category data display (part two)
Vue+Django REST framework
Set up a website of fresh supermarket with front and back ends separated
Django rtf completes the commodity category page
vue Displays the List of Commodities Page Data
Click on a navigation level class to display the data. Or click on the search to find the results
These two functions need to be compl ...
Posted by joel danny on Thu, 10 Jan 2019 12:36:10 -0800