Skip to content

Commit

Permalink
支持webp格式
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaou66 committed Aug 11, 2021
1 parent 10a857e commit 5028a1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pictureBed/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"pluginName": "图床",
"description": "图床",
"version": "1.2.0",
"version": "1.2.1",
"author": "xiaou",
"main": "vue/index.html",
"update": true,
Expand Down
2 changes: 1 addition & 1 deletion picturebed-vue/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default {
// image/png
// image/jpeg
files.forEach(item => {
const allowFormat = ['image/png', 'image/jpeg', 'image/gif']
const allowFormat = ['image/png', 'image/jpeg', 'image/gif', 'image/webp']
if (allowFormat.includes(item.type)) {
this.uploadImageHandler(item)
} else {
Expand Down

0 comments on commit 5028a1c

Please sign in to comment.