licailing 4 yıl önce
ebeveyn
işleme
fcaddd8fab

+ 5 - 1
src/main/vue/src/components/FileUpload.vue

@@ -178,7 +178,11 @@ export default {
             window.open('https://view.officeapps.live.com/op/view.aspx?src=' + file.url, '_blank');
         },
         previewPdf(file) {
-            window.open(this.$baseUrl + '/pdf/web/viewer.html?file=' + file.url, '_blank');
+            if (this.$baseUrl.substr(-1) == '/') {
+                window.open(this.$baseUrl + 'pdf/web/viewer.html?file=' + file.url, '_blank');
+            } else {
+                window.open(this.$baseUrl + '/pdf/web/viewer.html?file=' + file.url, '_blank');
+            }
         },
         isImage(file) {
             return /\.(jpg|jpeg|png|gif|bmp|webp)$/i.test(file.url);

+ 5 - 1
src/main/vue/src/components/FileUpload3.vue

@@ -178,7 +178,11 @@ export default {
             window.open('https://view.officeapps.live.com/op/view.aspx?src=' + file.url, '_blank');
         },
         previewPdf(file) {
-            window.open(this.$baseUrl + '/pdf/web/viewer.html?file=' + file.url, '_blank');
+            if (this.$baseUrl.substr(-1) == '/') {
+                window.open(this.$baseUrl + 'pdf/web/viewer.html?file=' + file.url, '_blank');
+            } else {
+                window.open(this.$baseUrl + '/pdf/web/viewer.html?file=' + file.url, '_blank');
+            }
         },
         isImage(file) {
             return /\.(jpg|jpeg|png|gif|bmp|webp)$/i.test(file.url);

+ 2 - 2
src/main/vue/src/plugins/http.js

@@ -5,10 +5,10 @@ import qs from 'qs';
 let baseUrl = 'http://localhost:8080';
 switch (process.env.NODE_ENV) {
     case 'development':
-        baseUrl = 'http://localhost:8080';
+        // baseUrl = 'http://localhost:8080';
         // baseUrl = 'http://wljtest.izouma.com';
         // baseUrl = 'http://192.168.50.190:8080';
-        // baseUrl = "http://yskj.njlyw.cn:8081";
+        baseUrl = "http://yskj.njlyw.cn:8081";
         break;
     case 'test':
         baseUrl = 'http://localhost:8080';

+ 6 - 1
src/main/vue/src/views/AnnouncementDetail.vue

@@ -108,7 +108,12 @@ export default {
             window.open('https://view.officeapps.live.com/op/view.aspx?src=' + file.url, '_blank');
         },
         previewPdf(file) {
-            window.open(this.$baseUrl + '/pdf/web/viewer.html?file=' + file.url, '_blank');
+            console.log(this.$baseUrl.substr(-1));
+            if (this.$baseUrl.substr(-1) == '/') {
+                window.open(this.$baseUrl + 'pdf/web/viewer.html?file=' + file.url, '_blank');
+            } else {
+                window.open(this.$baseUrl + '/pdf/web/viewer.html?file=' + file.url, '_blank');
+            }
         },
         isImage(file) {
             return /\.(jpg|jpeg|png|gif|bmp|webp)$/i.test(file.url);

+ 1 - 1
src/test/java/com/izouma/wenlvju/service/sms/NjwlSmsServiceTest.java

@@ -43,7 +43,7 @@ public class NjwlSmsServiceTest extends ApplicationTests {
                 "单位负责人:邵海燕\n" +
                 "电话:13951001355\n" +
                 "请在确定的时间内完成现场检查任务,谢谢!";
-        njwlSmsService.sendSms("18205083565", message);
+        njwlSmsService.sendSms("18119706098", message);
     }
 
 }