Преглед изворни кода

fix: 移除 setFileUrl 中的错误赋值及格式化代码

yusheng пре 1 месец
родитељ
комит
2824e8251a
1 измењених фајлова са 7 додато и 3 уклоњено
  1. 7 3
      src/views/monitor/alarm-record.vue

+ 7 - 3
src/views/monitor/alarm-record.vue

@@ -143,12 +143,13 @@
       },
       },
       setFileUrl(fileUrl) {
       setFileUrl(fileUrl) {
         let fileNames = fileUrl.split('/');
         let fileNames = fileUrl.split('/');
-        return (url =
+        return (
           window.location.origin +
           window.location.origin +
           '/api/main/file/getFile?objectName=' +
           '/api/main/file/getFile?objectName=' +
           fileUrl +
           fileUrl +
           '&fullfilename=' +
           '&fullfilename=' +
-          fileNames[fileNames.length - 1]);
+          fileNames[fileNames.length - 1]
+        );
 
 
         // return (
         // return (
         //   'http://aiot.zoomwin.com.cn:51001/api/main/file/getFile?objectName=' +
         //   'http://aiot.zoomwin.com.cn:51001/api/main/file/getFile?objectName=' +
@@ -180,7 +181,10 @@
       },
       },
       openVideo(val) {
       openVideo(val) {
         let url = val.recordVideoPath;
         let url = val.recordVideoPath;
-        this.$refs.DialogVideo.init(window.location.origin+'/kd-aiot'+url, '');
+        this.$refs.DialogVideo.init(
+          window.location.origin + '/kd-aiot' + url,
+          ''
+        );
         // this.$refs.DialogVideo.init(
         // this.$refs.DialogVideo.init(
         //   'http://aiot.zoomwin.com.cn:51001/kd-aiot' + url,
         //   'http://aiot.zoomwin.com.cn:51001/kd-aiot' + url,
         //   ''
         //   ''