Skip to content

Commit 9a0a6bf

Browse files
committed
build: release v1.4.7
1 parent 36dfd1a commit 9a0a6bf

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Build and Deploy
2+
23
on:
34
push:
4-
branches: [ main ]
5+
branches: [ main ]
6+
57
jobs:
68
build-and-deploy:
79
runs-on: ubuntu-latest

.github/workflows/prettier.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Prettier
22

33
on:
4-
pull_request:
54
push:
6-
branches:
7-
- main
5+
branches: [ main ]
86

97
jobs:
108
prettier:

src/api/file.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ async function qiniuUpload(file) {
127127
});
128128
const dir = path ? `${path}/` : "";
129129
const dateFilename = dir + getDateFilename(file.name);
130-
const config = {
131-
region,
132-
};
133-
const observable = qiniu.upload(file, dateFilename, token, {}, config);
130+
const observable = qiniu.upload(file, dateFilename, token, {}, { region });
134131
return new Promise((resolve, reject) => {
135132
observable.subscribe({
136133
next: (result) => {

0 commit comments

Comments
 (0)