mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-18 23:10:51 +01:00
implemented device name
This commit is contained in:
@ -21,9 +21,7 @@ export const usePasswordItemStore = defineStore('passwordItemStore', () => {
|
||||
},
|
||||
})
|
||||
|
||||
const currentItem = computedAsync(
|
||||
async () => await readAsync(currentItemId.value),
|
||||
)
|
||||
const currentItem = computedAsync(() => readAsync(currentItemId.value))
|
||||
|
||||
return {
|
||||
currentItemId,
|
||||
@ -179,6 +177,8 @@ const readAsync = async (itemId: string | null) => {
|
||||
where: eq(haexPasswordsItemDetails.id, itemId),
|
||||
})
|
||||
|
||||
console.log('readAsync details', details)
|
||||
|
||||
if (!details) return null
|
||||
|
||||
const history = (await usePasswordHistoryStore().getAsync(itemId)) ?? []
|
||||
|
||||
Reference in New Issue
Block a user