Explorar el Código

修复前端接收blob流错误

pixel hace 5 años
padre
commit
488fa976ff
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      QMPlusVuePage/src/view/systemTools/autoCode/index.vue

+ 1 - 2
QMPlusVuePage/src/view/systemTools/autoCode/index.vue

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