PS:在請求方法的 options 中加上 responseType: 'blob' this.httpClient.get('', { headers:{...}, params: {...}, responseType: 'blob', ... }) 先上碼 const code = response.data.replace(/[\n\r]/g, '') // 檢查