🌐 AI搜索 & 代理 主页
Skip to content

Commit 1f440b7

Browse files
committed
1 parent 0d307c1 commit 1f440b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InputFile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
this.$parent.addInputFile(e.target)
2020
if (e.target.files) {
2121
e.target.value = ''
22-
if (!/safari/i.test(navigator.userAgent)) {
22+
if (e.target.files.length && !/safari/i.test(navigator.userAgent)) {
2323
e.target.type = ''
2424
e.target.type = 'file'
2525
}

0 commit comments

Comments
 (0)