From 3aa90dbb675bbd115e623848d53224fba51976ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E5=85=88=E6=A3=AE?= Date: Sat, 30 Nov 2024 15:16:40 +0800 Subject: [PATCH] =?UTF-8?q?once=E6=94=B9=E4=B8=BAlisten=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=9B=91=E5=90=AC=E6=97=A0=E6=B3=95=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E7=9A=84bug=20=E5=A2=9E=E5=8A=A0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=88=90=E5=91=98=E5=88=97=E8=A1=A8=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E5=92=8C=E4=BC=A0=E8=BE=93=E7=9A=84=E5=AD=97=E7=AC=A6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=20=E4=BC=98=E5=8C=96=E6=88=90=E5=91=98=E5=88=97?= =?UTF-8?q?=E8=A1=A8nat=5Ftype=E4=B8=BA=E4=B8=AD=E6=96=87=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dipv4=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composables/windows.ts | 2 +- layouts/default.vue | 3 +- nuxt.config.ts | 2 ++ package.json | 6 ++-- pages/index.vue | 14 +++----- pages/member.vue | 27 +++++++++++++--- pnpm-lock.yaml | 67 ++++++++++++++++++--------------------- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 4 +-- 10 files changed, 70 insertions(+), 59 deletions(-) diff --git a/composables/windows.ts b/composables/windows.ts index ba7cdee..df382f7 100644 --- a/composables/windows.ts +++ b/composables/windows.ts @@ -37,7 +37,7 @@ export default async ( defaultOpts.y = logicalPosition.y; } dialog = new WebviewWindow(label, { ...defaultOpts, ...options }); - unlistenLogCreated = await dialog.once("tauri://webview-created", async () => { + unlistenLogCreated = await dialog.listen("tauri://webview-created", async () => { if (dialog) { afterCreatedFunc && (await afterCreatedFunc(dialog, appWindow)); await dialog.show(); diff --git a/layouts/default.vue b/layouts/default.vue index 8ab9880..1a6f8e6 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -5,7 +5,8 @@