From c1fbbc524f2186f05f1f8c9a807aa98d1e14926e Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Thu, 5 Sep 2024 13:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E6=9C=89=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7=EF=BC=8C=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/oss.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/oss.js b/src/utils/oss.js index 9e461a8b..51b4006f 100644 --- a/src/utils/oss.js +++ b/src/utils/oss.js @@ -18,7 +18,6 @@ async function ossGenerateSTS() { let res = await GetObjectStoreToken() // res.Result.ObjectStoreUse = 'AWS'; Vue.prototype.OSSclientConfig = { ...res.Result[res.Result.ObjectStoreUse] } - console.log(Vue.prototype.OSSclientConfig); Vue.prototype.OSSclientConfig.ObjectStoreUse = res.Result.ObjectStoreUse; Vue.prototype.OSSclientConfig.basePath = Vue.prototype.OSSclientConfig.viewEndpoint switch (res.Result.ObjectStoreUse) { @@ -60,7 +59,6 @@ async function ossGenerateSTS() { const { file, path } = data; if (!file || !path) return reject('file and path be required'); let config = await getSTSToken(Vue.prototype.OSSclientConfig.expiration); - console.log(config, 'config') if (config) { Vue.prototype.OSSclientConfig = { ...config.Result[config.Result.ObjectStoreUse] } Vue.prototype.OSSclientConfig.ObjectStoreUse = config.Result.ObjectStoreUse; @@ -80,7 +78,7 @@ async function ossGenerateSTS() { if (res) { resolve({ name: data.path, - url: Vue.prototype.OSSclientConfig.viewEndpoint + res.name + url: Vue.prototype.OSSclientConfig.viewEndpoint + decodeUtf8(res.name) }) } else { reject()