Small full stack project built with Vue family bucket + Node.js

Preface It has been more than a month since I came into contact with the vue framework. A little demo I have done before is mainly familiar with the vue family bucket technology. The interface layout imitates the cat's eye and the data uses the background interface provided by the bean flap developer. The whole process from scaffolding to the ...

Posted by DusterG20 on Tue, 10 Sep 2019 01:29:45 -0700

nginx knowledge the front end must know

The way forward for front-end developers has to learn nginx. This article deals with nginx command Configuration file, configuration explanation variable Journal Cross-domain Proxy Request location Interception Details gzip Anti-theft chain Reverse Proxy, Forward Proxy load balancing cache rewrite command Nginx-T View the current nginx final ...

Posted by gmwebs on Sat, 31 Aug 2019 10:14:42 -0700

The computed property "userName" is already defined in data.

This is a mistake made in an exercise. Make a note of it Description: To make a login using vuex, the following effects are achieved (one is not logged in, the other is logged in) Originally, you wanted to use vuex's getter to get the login name for ...

Posted by sachin_wal on Fri, 30 Aug 2019 22:14:39 -0700

How axios uses promise to refresh token painlessly

demand Recently, we met a requirement: after the front-end login, the back-end returns token and token valid time. When the token expires, we need to use the old token to get a new token. The front-end needs to refresh token painlessly, that is to say, when requesting to refresh token, it needs to be user-insensitive. Demand Analysis When a use ...

Posted by bostonmacosx on Tue, 27 Aug 2019 22:11:23 -0700

vue uses Wechat JS-SDK to realize sharing function

Recently, we have developed a project built with vue and embedded H5 pages in the public number of Wechat. Because of business requirements, we need to implement the custom sharing function of Wechat, so we integrate Wechat JS-SDK in the project. Wechat JS-SDK is a web development toolkit based on Wechat provided by Wechat Public Platform for w ...

Posted by Kadanis on Thu, 22 Aug 2019 23:05:23 -0700

Parse Axios source line by line

Source directory structure # ๐Ÿ“ lib # |-Request method used primarily by adapters // axios # Request functions used by the node side in |-|-http.js // Axios # Request functions used on browser side in |-|-xhr.js // Axios # |- ๐Ÿ“ cancel # |-|-|-Cancel.js //Defined, cancel the information structure returned by the request # |-|-|-CancelToken.j ...

Posted by acroporas on Thu, 08 Aug 2019 09:06:08 -0700

4. VueJs Pit Filling Diary Build Axios Interface Request Tool

In the previous chapter, we learned about the catalog structure of the project, and made some adjustments to the catalog structure of the project so that we can run the project again.Today we'll build the api interface invocation tool Axios.Vue itself does not support ajax calls, and if you need the ...

Posted by doucie on Tue, 06 Aug 2019 11:25:44 -0700

Previous Data Request

Data Request Data request: Axios fetch How to request data Native ajax fetch encapsulation jq Vue 1.x vue-resource abandonment test axios is now the best encapsulated request library [framework project] axios and vue-resource similarity 98% 1.axios Reference: cdn of axios can be int ...

Posted by wmolina on Tue, 30 Jul 2019 18:45:02 -0700

Vue Componentized Development

1. Implementing data requests through axios Introduction to 1. json json is an acronym for JavaScript Object Notation. The word means a javascript object representation, where json refers to a data format similar to a javascript object. What json does: Transfer data between different system platforms or programming languages. Syntax for 1.1 ...

Posted by jimmyt1988 on Mon, 29 Jul 2019 11:44:43 -0700

Nuxt development experience sharing, let you step on less pits!

Explain This article is based on starter-template template for babies with vue-cli development experience. vue init nuxt-community/starter-template Nuxt Official Documents Simply put, Nuxt is an application framework based on Vue, using server-side rendering, so that your SPA application (Vue ...

Posted by ErcFrtz on Wed, 24 Jul 2019 03:23:49 -0700