Просмотр исходного кода

wx打印 - template展示api返回值

zhangxiaomu 1 год назад
Родитель
Сommit
949c0acee1
1 измененных файлов с 1 добавлено и 1 удалено
  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
               }
             })
           })