Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
lailixiaoheihong1 committed Mar 14, 2024
1 parent 8cf9ac0 commit e60c434
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 e60c434

Please sign in to comment.