How to get the file name in the blob return stream when the front-end vue downloads a file

I wrote an article a long time ago that the front-end vue uses blob objects to download files. Some people believe me privately. If the back-end return flow fails, how can I get the json object given? How can the stream obtained by the front end obtain the original file name? In fact, after that article, I have optimized these two problems, so ...

Posted by WLC135 on Mon, 07 Mar 2022 10:35:55 +0100

[axios source code] - study and analysis of the core function in the adapter

Welcome to my official account, "front-end wall". 1, Environmental preparation axios version v0 twenty-four Through github1s web page, you can see axios source code clone to local is required for debugging git clone https://github.com/axios/axios.git cd axios npm start http://localhost:3000/ 2, Function study 1. Overvie ...

Posted by four4swords on Fri, 18 Feb 2022 23:58:46 +0100

Axios source code interpretation -- source code implementation

In the last two issues, we explained the source code of Axios:Axios source code interpretation - requestAxios source code interpretation -- network requestToday, we will implement a simple Axios to implement network requests on the Node side, and support some basic configurations, such as baseURL, url, request method, interceptor, cancel reques ...

Posted by dwardio on Tue, 18 Jan 2022 14:05:37 +0100

Axios api, js structurally defines and invokes business api interfaces.

axios-api @no-996/axios-api A tool based on axios that can create structured instances has the following characteristics: Based on axios and compatible with axios api, it can be migrated and used seamlessly. Two common request termination scenarios (based on cancelToken) are built in to prevent repeated interface calls. The built-in caching me ...

Posted by eddiegster on Sun, 16 Jan 2022 22:37:31 +0100

Vue project cross domain solution and vue.config.js configuration resolution

Why cross domain? Due to the homology policy restrictions of the browser. The same origin policy is a kind of convention. It is the core and basic security function of the browser. If the same origin policy is missing, the normal functions of the browser may be affected. It can be said that the Web is built on the basis of homologous strategy, ...

Posted by networkthis on Wed, 08 Dec 2021 03:10:48 +0100

Self cultivation of the whole stack: 002 using @ vue/cli vue.js Environment construction

<h1>Self cultivation of the whole stack: using @ vue/cli vue.js Environment construction</h1> Success, real success, is being willing to do the things that other people are not. Success, real success, is willing to do what others don't want to do. Table of Contents @[TOC] When you read this article, I think you are interested in h ...

Posted by haddydaddy on Mon, 29 Jun 2020 09:27:29 +0200

Add abort function to promise

There are only three states of project: pending, resolve, and reject. Once an asynchronous commitment is issued, it can only succeed or fail after it has been pending, and cannot be cancelled in the middle. There are two ways to provide abort function for promise: Manually implement abort. After the trigger is cancelled, the data returned as ...

Posted by ibechane on Wed, 27 May 2020 17:12:29 +0200

Note: build a simple file search system based on Springboot+Lucene

Different types of files are stored in the file storage system. The background extracts the file name and content through the program. Lucene is used to index the file name and content. The front end provides a query interface for the user. After the user submits the query keywords, the index library is retrieved and the matching documents are ...

Posted by txmedic03 on Sun, 19 Apr 2020 16:23:54 +0200

OAuth2.0-based token senseless refresh

The vue project at hand now has a requirement for permissions, but the architect asked me to do it very early, but because the urgency is not very high, I was reminded of the project coming online recently, so I rushed to make up for it.This project is based on OAuth2.0 authentication and requires that access_token be carried over the head of e ...

Posted by thompsonsco on Wed, 15 Apr 2020 04:08:54 +0200

A comprehensive table of Vue module (2) creating tables

A comprehensive table of Vue module (2) creating tables Technology stack Vue family bucket: Front end framework Vue.js State management Vuex Dynamic route matching Vue router http services axios Module packaging web pack UI framework element Data server Server side node.js node based web framework express mongodb: d ...

Posted by Dathremar on Sun, 05 Apr 2020 01:04:56 +0200