ludc
2023-11-26 ec2ed600ba8088a291838b0d448dbfd9e2150e2a
Source/UBCS-WEB/src/views/monitor/log/localLog.vue
@@ -121,11 +121,18 @@
        };
      }
    },
    methods: {
    methods: {
      // 判断客户端所在的操作系统平台
      isWindows() {
        return navigator.platform.indexOf('Win') !== -1
      },
      // 根据操作系统平台返回相应的路径分隔符
      getPathSeparator() {
        return this.isWindows() ? '\\' : '/'
      },
      downLoadLogFile(row){
          this.downloadLoading = true;
          let logPath = row.hasChildren ?  row.logPath:row.logPath+"\\"+row.logName;
          let logPath = row.hasChildren ?  row.logPath:row.logPath+this.getPathSeparator()+row.logName;
          downLoadLog(Object.assign({},row,{logFullPaths:logPath})).then(res=>{
              func.downloadFileByBlobHandler(res);
              this.downloadLoading = false;