mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-18 15:00:52 +01:00
add desktop
This commit is contained in:
@ -51,11 +51,12 @@ export const useDeviceStore = defineStore('vaultInstanceStore', () => {
|
||||
|
||||
const readDeviceNameAsync = async (id?: string) => {
|
||||
const { readDeviceNameAsync } = useVaultSettingsStore()
|
||||
const _id = id ?? deviceId.value
|
||||
const _id = id || deviceId.value
|
||||
console.log('readDeviceNameAsync id', _id)
|
||||
if (!_id) return
|
||||
|
||||
deviceName.value = (await readDeviceNameAsync(_id))?.value ?? ''
|
||||
|
||||
return deviceName.value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user