Skip to content

Commit

Permalink
uploader error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Mar 6, 2024
1 parent 30928a2 commit 0dac4bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/common/Setting/General.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,8 @@ function clearData(): void {
}
function handleImportButtonClick(): void {
const fileInput = document.getElementById('fileInput') as HTMLElement
if (fileInput)
fileInput.click()
const fileInput = document.getElementById('fileInput2') as HTMLElement
if (fileInput) fileInput.click()
}
</script>

Expand Down Expand Up @@ -169,7 +168,7 @@ function handleImportButtonClick(): void {
{{ $t('common.export') }}
</NButton>

<input id="fileInput" type="file" style="display:none" @change="importData">
<input id="fileInput2" type="file" style="display:none" @change="importData">
<NButton size="small" @click="handleImportButtonClick">
<template #icon>
<SvgIcon icon="ri:upload-2-fill" />
Expand Down

0 comments on commit 0dac4bf

Please sign in to comment.