🎈 perf: 主机名提示显示本机主机名

This commit is contained in:
m1m1sha
2024-05-08 21:02:14 +08:00
parent e6ad308cd5
commit 52fef9fd4f
8 changed files with 32 additions and 6 deletions

View File

@@ -20,3 +20,7 @@ export async function collectNetworkInfos() {
const ret: string = await invoke('collect_network_infos', {})
return JSON.parse(ret)
}
export async function getOsHostname(): Promise<string> {
return await invoke('get_os_hostname')
}