From e17994d4546ec982bbb64d7cb7e92243fb0734e0 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sun, 30 May 2021 12:16:24 +0000 Subject: [PATCH] style: prettify code --- src/api/file.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/api/file.js b/src/api/file.js index 5301f01..a604dd7 100644 --- a/src/api/file.js +++ b/src/api/file.js @@ -159,14 +159,8 @@ async function qiniuUpload(file) { async function aliOSSFileUpload(content, filename) { const dateFilename = getDateFilename(filename); - const { - region, - bucket, - accessKeyId, - accessKeySecret, - cdnHost, - path, - } = JSON.parse(localStorage.getItem("aliOSSConfig")); + const { region, bucket, accessKeyId, accessKeySecret, cdnHost, path } = + JSON.parse(localStorage.getItem("aliOSSConfig")); const buffer = Buffer(content, "base64"); const dir = `${path}/${dateFilename}`; const client = new OSS({