Przeglądaj źródła

wx打印 - template展示api返回值

zhangxiaomu 1 rok temu
rodzic
commit
949c0acee1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/view/wx-print/index.vue

+ 1 - 1
src/view/wx-print/index.vue

@@ -128,9 +128,9 @@ export default {
             let formData = new FormData();
             formData.append('file', pdf);
             this.excute(this.$service.fileService, `upload?folder=pdf&uuid=${this.$route.query.uuid}`,formData).then(res => {
+              this.uploadRes=res
               if (res.code === this.$config.SUCCESS_CODE) {
                 console.log('upload-res',res)
-                this.uploadRes=res
               }
             })
           })