From 945fcf0dff481178ad34f9b217e0b4aeb8e31cb2 Mon Sep 17 00:00:00 2001 From: qiqi Date: Tue, 17 Nov 2026 10:33:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(types):=20=E8=A1=A5=E9=BD=90=E5=9B=BE?= =?UTF-8?q?=E5=BA=93=20item=20=E5=AD=97=E6=AE=B5=E4=B8=8E=20=5F=5FTAURI=5F?= =?UTF-8?q?=5F=20=E5=A3=B0=E6=98=8E=EF=BC=8C=E4=BF=AE=E5=A4=8D=20CI=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/storage-file.js | 2 +- types/iwb-globals.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage-file.js b/src/storage-file.js index aa0108b..7b00aab 100644 --- a/src/storage-file.js +++ b/src/storage-file.js @@ -591,7 +591,7 @@ const m = /(\d{13})/.exec(name) const orig = 'out_orig_' + name return { - name: name, url: '', size: 0, mtime: m ? Number(m[1]) : Date.now(), w: 0, h: 0, label: '', + name: name, url: '', size: 0, data: '', thumbHash: '', mtime: m ? Number(m[1]) : Date.now(), w: 0, h: 0, label: '', idb: 'out_' + name, origIdb: Object.prototype.hasOwnProperty.call(assets, orig) ? orig : undefined, } diff --git a/types/iwb-globals.d.ts b/types/iwb-globals.d.ts index 713d1b0..8079ae5 100644 --- a/types/iwb-globals.d.ts +++ b/types/iwb-globals.d.ts @@ -22,6 +22,7 @@ interface Window { IWBStorageMigrations?: any IWBStorageIndexedDb?: any IWBStorageFile?: any + __TAURI__?: any IWBDesktop?: any IWBStorageFallbackIndexedDb?: any // 画布 / 工作台