From 786a3523ada37160a086857b2e8b902efbaaee73 Mon Sep 17 00:00:00 2001 From: nokhnaton Date: Thu, 24 Oct 2024 18:36:35 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=B3=E3=83=97=E7=94=BB?= =?UTF-8?q?=E5=83=8F=E3=82=92=E9=81=B8=E6=8A=9E=E3=81=99=E3=82=8B=E3=81=A8?= =?UTF-8?q?=E3=81=8D=E3=81=ABSVG=E3=82=92=E9=81=B8=E6=8A=9E=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Settings/StampTab/NewStamp.vue | 7 ++++++- src/components/Settings/StampTab/StampContextMenu.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/StampTab/NewStamp.vue b/src/components/Settings/StampTab/NewStamp.vue index 2a01347f1..80c9dbff5 100644 --- a/src/components/Settings/StampTab/NewStamp.vue +++ b/src/components/Settings/StampTab/NewStamp.vue @@ -18,7 +18,12 @@ import { useModalStore } from '/@/store/ui/modal' const { pushModal } = useModalStore() -const acceptImageType = ['image/jpeg', 'image/png', 'image/gif'].join(',') +const acceptImageType = [ + 'image/jpeg', + 'image/png', + 'image/gif', + 'image/svg+xml' +].join(',') const { selectImage } = useFileSelect({ accept: acceptImageType }, files => { if (!files[0]) return pushModal({ diff --git a/src/components/Settings/StampTab/StampContextMenu.vue b/src/components/Settings/StampTab/StampContextMenu.vue index bd9b9261d..88b879206 100644 --- a/src/components/Settings/StampTab/StampContextMenu.vue +++ b/src/components/Settings/StampTab/StampContextMenu.vue @@ -42,7 +42,12 @@ const emit = defineEmits<{ const { pushModal } = useModalStore() const { execWithToast } = useExecWithToast() -const acceptImageType = ['image/jpeg', 'image/png', 'image/gif'].join(',') +const acceptImageType = [ + 'image/jpeg', + 'image/png', + 'image/gif', + 'image/svg+xml' +].join(',') const close = () => { emit('close')