mirror of
https://github.com/doocs/md.git
synced 2024-10-30 15:57:50 +08:00
style: prettify code
This commit is contained in:
parent
fd904afa21
commit
e17994d454
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user