Browse Source

修复前端接收blob流错误

main
pixel 5 years ago
parent
commit
488fa976ff
  1. 3
      QMPlusVuePage/src/view/systemTools/autoCode/index.vue

3
QMPlusVuePage/src/view/systemTools/autoCode/index.vue

@ -146,8 +146,7 @@ export default {
if (valid) { if (valid) {
this.form.structName = toUpperCase(this.form.structName) this.form.structName = toUpperCase(this.form.structName)
const data = await createTemp(this.form) const data = await createTemp(this.form)
const blob = new Blob([data],{type: 'application/json'})
debugger
const blob = new Blob([data])
const fileName = 'ginvueadmin.zip' const fileName = 'ginvueadmin.zip'
if ('download' in document.createElement('a')) { // IE if ('download' in document.createElement('a')) { // IE
let url = window.URL.createObjectURL(blob) let url = window.URL.createObjectURL(blob)

Loading…
Cancel
Save