support receiving images from the Web Share Target API Level 2 and directly opening AI image recognition on mobile version

This commit is contained in:
MaysWind
2026-03-08 15:25:19 +08:00
parent 5ce1dc973c
commit 282b74c95e
8 changed files with 130 additions and 8 deletions
+14 -1
View File
@@ -139,7 +139,20 @@ export default defineConfig(() => {
sizes: '512x512',
type: 'image/png'
}
]
],
share_target: {
action: './__share__image__',
method: 'POST',
enctype: 'multipart/form-data',
params: {
files: [
{
'name': 'image',
'accept': ['image/*']
}
]
}
}
},
injectManifest: {
globDirectory: 'dist/',