Browse Source

商品资料库版本

喻文俊 3 years ago
parent
commit
6938f02600

+ 2 - 2
src/main/resources/static/js/common/ajax.service.js

@@ -33,7 +33,7 @@ var Http = {
                 },
                 type: option.type,
                 dataType: "json",
-                // headers: { 'X-Token': REV_TOKEN_ENV },
+                headers: { 'X-Token': REV_TOKEN_ENV },
                 async:false,
                 contentType: option.json ? 'application/json;charset=UTF-8' : 'application/x-www-form-urlencoded',
                 beforeSend:function () {
@@ -52,7 +52,7 @@ var Http = {
                     def.resolve(res);
                 }
             }, function(error) {
-                console.log('网络请求超时,请重试~')
+                console.log('网络请求超时,请重试~');
                 def.reject(error);
             });
             return def;

+ 3 - 1
src/main/resources/static/js/document/pdfdetails.js

@@ -41,7 +41,9 @@ var documentList = new Vue({
     mounted: function () {
         this.pdfId = CAIMEI.getUrlParam('id');
         this.type = CAIMEI.getUrlParam('type');
-        this.fileUrl = CAIMEI.getUrlParam('src');
+        var index = window.location.href.indexOf('src=');
+        this.fileUrl = window.location.href.substring(index + 4);
+        // this.fileUrl = CAIMEI.getUrlParam('src');
         if (this.type === '1') {
             this.makedPdf();
         } else {