Skip to content

Commit

Permalink
feat: 展示导入 db 文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
huayemao committed Jun 23, 2024
1 parent 4d1b4f2 commit a5a021c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/(content)/data-process/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ export default function Home() {
<BaseInputFile
id="fileInput"
onChange={(files) => {
const file = files?.[0];
const file = files?.[0] as File;
if (file) {
const url = URL.createObjectURL(file);
dbWorker?.readWriteDB(encodeURIComponent("测试数据库.db"), url);
dbWorker?.readWriteDB(encodeURIComponent(file.name), url);
}
}}
/>
Expand Down

0 comments on commit a5a021c

Please sign in to comment.