Vue multi table case

Note: due to the large number of codes designed in this case, it is divided into two parts to upload. This article is the first part. 1. Preparation 1.1 database # Create category table , Primary key, primary table(1surface) CREATE TABLE t_category( cid INT PRIMARY KEY AUTO_INCREMENT, cname VARC ...

Posted by AL-Kateb on Sat, 25 Jan 2020 23:22:42 -0800

Notes and summary in Vue cli project

webpack summary 1. It's hard to avoid cross domain problems in front and back platform separation projects, which can be configured in devServer of webpack devServer:{ proxy:{ "/api":{ target:"https://****. com "/ / address of data interface changeOrigin:true, // Cross domain allowe ...

Posted by rkeppert on Sat, 25 Jan 2020 07:49:10 -0800

Vue entry notes

Vue learning notes 1. MVVM mode and the first Vue program Learning course of java according to ecstasy What is MVC? MVC mode represents model view controller mode. This pattern is used for hierarchical development of applications. Model - a model represents an object or JAVA POJO that accesses d ...

Posted by zipdisk on Thu, 23 Jan 2020 05:36:46 -0800

Processing of reject in project.all

Yesterday, I wrote a small crawler. When using axios.all to request multiple pages at the same time, it's easy for the reasons of the domestic network to time out and reject. It's not advisable for Buddhist resolve. Then I thought that I could realize a function of "resending failed requests". Promise.all(requestPromises).then(...).ca ...

Posted by jbalanski on Tue, 21 Jan 2020 08:04:37 -0800

js download files, audio, video

Recently, I did a music download, downloading with tag a will jump to the url of the audio (it can't be downloaded directly on the current page). After a long time, I finally found this article: https://www.jianshu.com/p/c31c199e1d5e Download the solution using fetch, collect a wave, thank you old m ...

Posted by eevan79 on Sat, 18 Jan 2020 19:36:33 -0800

React actual battle - star rating and merchant list component

1, Star evaluation component import '../../Assets/css/star.css'; import React from 'react'; class StarScore extends React.Component { renderScore(){ let wm_poi_score = this.props.score || ''; let score = wm_poi_score.toString(); let scoreArray = score.split('.'); // ...

Posted by fontener on Sat, 18 Jan 2020 06:04:22 -0800

Spring boot, spring security, Vue integrated JWT certification

Original address Summary Before starting this article, the blogger defaults that you already know Spring Boot, Spring Security, Vue and JWT. The above concepts will not be repeated here. Let's talk about the train of thought. 1. The backend needs to write JWT generation processing and JWT parsing authentication processing. 2. The front ...

Posted by NTM on Wed, 15 Jan 2020 21:50:45 -0800

Problems in the application of Axios

1. Set Axios cross domain in Vue axios has become the officially recommended way for Vue to obtain background data from ajax. However, we need to solve the cross domain problem of axios in use. Here we take the 2.x version of Vue cli as an example to solve the cross domain problem of axios. In config/index.js We implement the ...

Posted by Gregghawes on Mon, 06 Jan 2020 04:37:26 -0800

On the response of data in VUE

Using VUE development project, the ui framework used is element ui. When writing the table expansion line, after getting the data, add the data to the table data bound to the table. I add a new attribute tableDtailData to each item in the tableData to store the expansion line data (api.getInData() is the method to send the requ ...

Posted by zebrax on Sun, 05 Jan 2020 23:51:16 -0800

vue uses Weixin SDK recording function

Just graduated, entered the company, met the first vue project, using Weixin SDK JS to do the recording function, so started the research journey, after a long time of research, finally, Zen realized a little bit of fur Many experiments, failures, summary: Weixin JS SDK is to be used online, and can only be used on wechat. It' ...

Posted by xcoderx on Sun, 05 Jan 2020 18:07:23 -0800