소스 검색

修复前端接收blob流错误

pixel 5 년 전
부모
커밋
488fa976ff
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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)