<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                responseType: 'blob': 不可缺少 ``` function exportLogData(data, file_name) { axios({ method: 'post', url: serverIp + '/sysLog/download', responseType: 'blob', data, headers: { 'Access-Control-Allow-origin': '*', 'Content-Type': 'application/json; charset=UTF-8', 'Token':JSON.stringify(getToken())} }).then((res) => { if (res && res.status === 200) { const blob = new Blob([res.data]) let brower = ''; if (navigator.userAgent.indexOf('Edge') > -1){ brower = 'Edge' } if ('download' in document.createElement('a')){ if (brower === 'Edge') { navigator.msSaveBlob(blob, file_name); return } let url = window.URL.createObjectURL(res.data); let link = document.createElement('a'); link.style.display = 'none'; link.href = url; link.setAttribute('download', file_name); if(!document.getElementById(file_name)) { document.body.appendChild(link); } link.click(); URL.revokeObjectURL(link.herf); document.body.removeChild(link) } else { //IE10+下載 navigator.msSaveBlob(blob, file_name) } } }).catch(error => { console.log(error) }) } ``` 后端 ~~~ @GetMapping("/download-report/{id}") @ApiOperation("下載報告:/opsTestPlan/download-report/{id}") public ResponseData downloadReport(HttpServletResponse response, @PathVariable Long id) { ObsObject obsObject = testPlanService.downloadReport(id); try(InputStream input = obsObject.getObjectContent(); OutputStream outputStream = new BufferedOutputStream(response.getOutputStream());){ response.setContentType("application/octet-stream"); int len; byte[] b = new byte[1024]; while ((len=input.read(b)) != -1){ outputStream.write(b, 0, len); } outputStream.flush(); }catch (Exception ex) { throw new ServiceException(ex.getCause()); } return null; } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看