Browse Source

修复前端接收blob流错误

pixel 5 years ago
parent
commit
488fa976ff
1 changed files with 1 additions and 2 deletions
  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)