From 6d3e975f49cf99458a4a5ac13790a0f2ca24ade5 Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Sat, 12 Sep 2026 16:28:37 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=A2=9E=E5=8A=A0=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.config.ts | 6 +- src/auto-imports.d.ts | 5 + src/components/settings/wifiNetwork.vue | 10 +- src/utils/wifi.ts | 493 ++++++++++++++++++++++++ 4 files changed, 511 insertions(+), 3 deletions(-) create mode 100644 src/utils/wifi.ts diff --git a/manifest.config.ts b/manifest.config.ts index 2446468..9aad389 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -34,12 +34,14 @@ export default defineManifestConfig({ '', '', '', - '', + '', '', + '', + '', + '', '', '', '', - '', '', '', '', diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 956bb72..ebdb95e 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -329,6 +329,7 @@ declare global { const watchTriggerable: typeof import('@vueuse/core')['watchTriggerable'] const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter'] const whenever: typeof import('@vueuse/core')['whenever'] + const wifi: typeof import('./utils/wifi')['default'] } // for type re-export declare global { @@ -338,6 +339,9 @@ declare global { // @ts-ignore export type { SystemInfo } from './utils/device' import('./utils/device') + // @ts-ignore + export type { WifiInfo, ConnectWifiParams, WifiStateCallback, WifiScanCallback } from './utils/wifi' + import('./utils/wifi') } // for vue template auto import @@ -667,5 +671,6 @@ declare module 'vue' { readonly watchTriggerable: UnwrapRef readonly watchWithFilter: UnwrapRef readonly whenever: UnwrapRef + readonly wifi: UnwrapRef } } \ No newline at end of file diff --git a/src/components/settings/wifiNetwork.vue b/src/components/settings/wifiNetwork.vue index 2e4750f..84462ee 100644 --- a/src/components/settings/wifiNetwork.vue +++ b/src/components/settings/wifiNetwork.vue @@ -1,4 +1,6 @@