From 5cf57115391362d9b2e1137f087e4320d39533eb Mon Sep 17 00:00:00 2001 From: cany748 Date: Tue, 28 Oct 2025 17:27:45 +0700 Subject: [PATCH] fix: types --- src/app/components/Form/NumberField.vue | 2 +- src/app/components/Form/TextField.vue | 2 +- src/server/utils/WireGuard.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/Form/NumberField.vue b/src/app/components/Form/NumberField.vue index 07ad5872..23f5c21f 100644 --- a/src/app/components/Form/NumberField.vue +++ b/src/app/components/Form/NumberField.vue @@ -13,5 +13,5 @@ diff --git a/src/app/components/Form/TextField.vue b/src/app/components/Form/TextField.vue index e62de448..1bf6d26a 100644 --- a/src/app/components/Form/TextField.vue +++ b/src/app/components/Form/TextField.vue @@ -26,5 +26,5 @@ defineProps<{ disabled?: boolean; }>(); -const data = defineModel(); +const data = defineModel(); diff --git a/src/server/utils/WireGuard.ts b/src/server/utils/WireGuard.ts index 0a4a57d8..2da26fce 100644 --- a/src/server/utils/WireGuard.ts +++ b/src/server/utils/WireGuard.ts @@ -209,10 +209,10 @@ class WireGuard { } const [h1, h2, h3, h4] = Array.from(headers); - wgInterface.h1 = h1; - wgInterface.h2 = h2; - wgInterface.h3 = h3; - wgInterface.h4 = h4; + wgInterface.h1 = h1!; + wgInterface.h2 = h2!; + wgInterface.h3 = h3!; + wgInterface.h4 = h4!; Database.interfaces.update(wgInterface); }