Ver código fonte

fix: 处理打印接口问题

wangcz 7 anos atrás
pai
commit
af8b67e250
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/main/webapp/resources/js/common/b2bServices.js

+ 3 - 0
src/main/webapp/resources/js/common/b2bServices.js

@@ -384,6 +384,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
         }])
         .factory('B2bReportService', ['$http', 'BaseService', 'toaster', '$rootScope', function($http, BaseService, toaster, $rootScope) {
           var rootPath = BaseService.getB2bUrl();
+            if (rootPath.indexOf('/UBTOB')) {
+                rootPath = rootPath.replace('/UBTOB', '')
+            }
           return {
             /**
              * 打印方法 enuu 企业的UU号 reportName 对应报表的名称 whereCondition