zhangxiaomu il y a 1 an
Parent
commit
51ca1f6c49
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/view/wx-print/index.vue

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

@@ -151,8 +151,8 @@ export default {
                   content: '<p>如页面长时间无响应,请点击【确定】按钮,复制链接到手机浏览器下载票据文件</p>',
                   onOk: () => {
 
-                    let baseUrl=process.env.VUE_APP_SERVER_URL
-
+                    let baseUrl=this.$config.serviceUrl
+                    console.log('this.$config.serviceUrl',this.$config.serviceUrl)
                     let url=baseUrl.substring(0,url.indexOf('/'))+'/wx-print?svc_code=' +this.$route.query.svc_code + '&is_download=true'
                       + '&cp_id=' +  this.$route.query.cp_id + '&doc=' + this.$route.query.doc + '&layout_id='
                       + this.$route.query.layout_id + '&data_id=' + this.$route.query.data_id