Spring Boot+Vue Test Project

I. Construction Projects Create projects using vue-cli: Then import the editor (I use webstorm) and start it up to see if you can access localhost:8080. The ability to access indicates that it is normal to create projects using vue-cli.   ...

Added by IceRegent on Fri, 06 Sep 2019 15:05:02 +0300

vue + koa2 implements session | token login status verification

Differences between Session landing and Token landing 1. Session login is to generate user-related session data on the server side and send the session_id to the client side to store in cookies, so that when the client requests, session_id can verify the existence of session data on the server side, so as to complete user authentication. This a ...

Added by shwanky on Thu, 29 Aug 2019 15:14:01 +0300

Remember to have an http request support interceptor

Recently, I want to use the full js system to write a front-end and back-end learning, and created a set of TODOList project trainers. Currently only the back-end demo has been written, and the front-end is using vue. And prepare to write it again later with react and flutter.This projectBackend demo premise Framework 7, a mobile ui framework, ...

Added by kappaluppa on Fri, 23 Aug 2019 09:17:30 +0300

Spring Boot 2.x: Don't panic when you encounter cross-domain

What is cross-domain First, we need to understand how a URL is made up: // Protocol + Domain Name (Subdomain + Main Domain Name) + Port Number + Resource Address http: + // + www.baidu.com + :8080/ As long as one of the four components of protocol, sub-domain name, main domain name and port number is different, it can be considered as differ ...

Added by ricoche on Fri, 02 Aug 2019 05:20:42 +0300

Simple application of axios in Vue

1. Install axios: npm install --save axios vue-axios 2. Install qs: qs.stringify(data) can solve the problem of data format npm install --save axios vue-axios qs 3. Refer to in the main.js page: 1 import Vue from 'vue' 2 import axios from 'axios' 3 import qs from 'qs' 4 5 Vue.prototype.$http = axios 6 Vue.prototype.qs = qs 4. U ...

Added by mligor on Wed, 31 Jul 2019 10:58:27 +0300

Part 6: Implementing a set of ui component library (loading) components of vue on pc side from scratch

Episode 6: Implementing from scratch (loading components) Location of this episode: loading component I believe that as long as there are projects interacting with the back end, it is needed. Although the component is simple, its role is very important: Let the user have a good experience, that is, to give the user a signal,'I'm doing it, wai ...

Added by MattAdamson on Tue, 30 Jul 2019 16:22:00 +0300

iView Learning Notes: Table Line Editing

1. Front-end preparation First create a new project, then introduce the iView plug-in, configure router npm to install iView npm install iview --save cnpm install iview --save src/main.js file content import Vue from 'vue' import App from './App.vue' import router from './router' import iView from 'iview'; import 'iview/dist/styles/iview.css'; ...

Added by HokieTracks on Sat, 27 Jul 2019 13:43:13 +0300

axios use of vue

1. Installation 1. Install npm install Axios using npm --save 2. Install bower install Axios with bower --save 3. Introduce <script src="https://unpkg.com/axios/dist/axios.min.js"></script>directly using cdn 2. Examples 1. Send a GET request //Send a request with a given ID axios.get('/user?ID=12345') .then ...

Added by phatgreenbuds on Thu, 20 Jun 2019 20:32:42 +0300

Large File Partial Upload Based on Node.js

When we do file upload, if the file is too large, it may cause the request to time out.Therefore, when you encounter the need to upload large files, you need to upload files in pieces.At the same time, if the file is too large, how to continue the breakpoint when the network is not good?You also need to record the current upload file and make a ...

Added by rashpal on Tue, 18 Jun 2019 19:20:41 +0300

vue calculation properties

Computing attributes Expressions within templates are convenient, but they are actually only used for simple operations.Placing too much logic in a template can overweight and make it difficult to maintain.For example: <div id="example"> {{ message.split('').reverse().join('') }} </div> In this case, the template is no longer sim ...

Added by sugarat on Thu, 06 Jun 2019 19:06:20 +0300