style: prettify code

This commit is contained in:
yanglbme 2021-05-30 12:16:24 +00:00 committed by GitHub Action
parent fd904afa21
commit e17994d454

View File

@ -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({