Skip to content

Commit

Permalink
Merge pull request #4 from lailixiaoheihong1/master
Browse files Browse the repository at this point in the history
add
  • Loading branch information
lailixiaoheihong1 authored Mar 14, 2024
2 parents 782813d + e60c434 commit 24952d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@quansitech/pallas-h5",
"version": "0.1.2",
"version": "0.1.3",
"description": "web components",
"license": "MIT",
"module": "dist/index.js",
Expand Down
6 changes: 5 additions & 1 deletion src/components/image-uploader/storage/cos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ const cosStorage: Storage = {

const data = await response.json();

return data;
return {
status: parseInt(data.status),
url: data.file_url,
file_id: data.file_id,
};
},
};

Expand Down

0 comments on commit 24952d4

Please sign in to comment.