Home > other >  Vue download file
Vue download file

Time:09-23




Backend returns a binary stream, writing in response to the front with the framework of the vue download, files are damaged open PDF file content blank, zip hints file directly damage the

CodePudding user response:


Puzzling, what all have no, how can I help you see,

CodePudding user response:


The front-end code

CodePudding user response:


Use downloadjs

CodePudding user response:


The back-end document flow is in the cache, the feeling should be cached didn't handle

CodePudding user response:


Callback interface directly download the front-end structure form submitted parameters for
https://my.oschina.net/odetteisgorgeous/blog/3011895

CodePudding user response:


Local debugging interface
https://my.oschina.net/odetteisgorgeous/blog/3035279

CodePudding user response:


This is back-end code, writing content in the response of
The response. SetContentType (" application/PDF; charset=utf-8");
The response. SetContentType (" application/octet - stream; charset=utf-8");
Two have tried

CodePudding user response:

Solve the code, please?
  • Related