diff --git a/pictureBed/plugin.json b/pictureBed/plugin.json index e525471..83c1df9 100644 --- a/pictureBed/plugin.json +++ b/pictureBed/plugin.json @@ -1,7 +1,7 @@ { "pluginName": "图床", "description": "图床", - "version": "1.2.0", + "version": "1.2.1", "author": "xiaou", "main": "vue/index.html", "update": true, diff --git a/picturebed-vue/src/views/index.vue b/picturebed-vue/src/views/index.vue index 923b1f4..cd309a2 100644 --- a/picturebed-vue/src/views/index.vue +++ b/picturebed-vue/src/views/index.vue @@ -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 {