From 60b9b6043c7b4bb934200190e28cdb502c1bce40 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 22 Apr 2024 16:56:35 +0800 Subject: [PATCH] =?UTF-8?q?oss=E9=85=8D=E7=BD=AE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/oss.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/oss.js b/src/utils/oss.js index 0cb5440..f7ce065 100644 --- a/src/utils/oss.js +++ b/src/utils/oss.js @@ -68,7 +68,9 @@ async function ossGenerateSTS() { const reader = new FileReader(); reader.onload = (ex) => { const bufferStream = new stream.PassThrough() - bufferStream.end(Buffer.from(ex.target.result)) + bufferStream.end(Buffer.from(ex.target.result)) + // minioClient.bucketExists('ecgdata' + console.log(Vue.prototype.OSSclientConfig.bucketName, objectName, bufferStream) minioClient.putObject(Vue.prototype.OSSclientConfig.bucketName, objectName, bufferStream, function(err,etag) { if (err) { console.log(err)