vue simple use of mock

I. mock 1, introduction mock is an analog data generator designed to help the front-end develop independently of the back-end and help write unit tests. It can simulate Ajax and return simulation data, so that the front end does not need to call the back-end interface, which is convenient for testing.  2. vue directly uses mock step1: inst ...

Added by BRAINDEATH on Thu, 17 Oct 2019 23:45:57 +0300

Detailed Explanation of axios Source Parsing Interceptor

In addition to the initialization configuration, axios should have other useful interceptors, which are divided into request interceptors and response interceptors.Request interceptor: Some operations are performed before the request is sent, such as adding token to each request body, which makes it very easy to process the request uniformly if ...

Added by daf_cr on Thu, 10 Oct 2019 09:18:21 +0300

Dynamic Tree + Data Table + Paging for SPA Project Development

Train of thought: 1. Prepare the background (left tree, paged article query) 2. Bind the data of the left tree to the menu tag in elementui 3. Use elementui's el-table component to display the list of articles 4. Binding the el-pagination paging component provided by elementui to complete paging funct ...

Added by SycoSyco on Tue, 08 Oct 2019 08:52:16 +0300

Dynamic Tree and Data Table of SPA Project

Catalog Tree menu Data tables and paging This is my project hierarchy. Tree menu Today is based on the last improvement, access to background data, dynamic display of the tree menu, and then the menu can click to jump to different pages. The data used the code of the last SSH tree menu and Book ...

Added by dyconsulting on Mon, 07 Oct 2019 20:25:09 +0300

node Notes - Writing of json Files

What we did was a little demo.The general contents are as follows:1. Front End of Vue Framework Writing2.axios call interface3. Write json through interface4. access to all computers in the LAN. First you need to install somethingFront end is npm install axios Back-end installation of express framework npm install express --save npm install bod ...

Added by johne281 on Tue, 01 Oct 2019 23:30:20 +0300

vue-Element-axios architecture calls api for data display

1 Global Installation vue-cli Enter command: NPM install vue-cli-g 2 Create project framework Input command: vue init webpack vueapi Enter the project name, project description, project author and so on according to the prompt in turn. 4. Enter the vueapi directory Enter command: cd vueapi 5. Install element-ui Input comma ...

Added by RickyF on Mon, 30 Sep 2019 17:30:59 +0300

Create a single-page Vue application from Laravel

In this tutorial, we continue to create a Vue Single Page Application (SPA) in Laravel by learning how to load asynchronous data from the Laravel API in the Vue component.We'll also look at error handling, such as how the interface responds when the API returns an error. If you haven't studied Part One , we build a Vue Single Page Application ( ...

Added by alsinha on Tue, 24 Sep 2019 05:43:15 +0300

How to realize the privilege control of background management system in vue

I. Preface In the advertising ji project, the role's authority management has been a difficult problem for a long time. Firstly, the authority control we determine is divided into two parts, which are more detailed according to the size of the granule: Privilege Control of Interface Access Privilege Control of Pages Is the page in the menu ac ...

Added by jerrylouise on Wed, 11 Sep 2019 17:09:12 +0300

Vue Practice - How to Realize the Column of Commodity Evaluation (14)

In this article, we realize the commodity evaluation column. Complete the structure of the scoring component: Let's first set up a ratings container, or familiar old situation, ratings-wrapper may be higher than ratings, at this time we will definitely let ratings scroll bar, ref is also an old friend, with Bscroll to achieve ratings-wrapper s ...

Added by Xurion on Sun, 08 Sep 2019 11:09:05 +0300

Reaction hooks+redux+immutable.js Create Netease Cloud Music Beautiful webApp

Introduction of Technology Stack Front end part: react v16.8 family bucket (react,react-router): MVVM framework for building user interface redux: Famous JavaScript State Management Container redux-thunk: redux middleware for handling asynchronous logic immutable: Facebook's three-year-old library for persistent data structure processing (it ...

Added by ctcp on Fri, 06 Sep 2019 18:24:36 +0300