Parcourir la source

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

yusheng il y a 4 semaines
Parent
commit
2824e8251a
1 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. 7 3
      src/views/monitor/alarm-record.vue

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

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