Skip to content

Commit 731b6b6

Browse files
committed
fix bookmarks duplicates
1 parent 9ccc47b commit 731b6b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ bookmarksStore.$subscribe((mutation, state) => {
2121
})
2222
2323
onMounted(async () => {
24+
if (localStorage.bookmarks) {
25+
bookmarksStore.bookmarks = JSON.parse(localStorage.bookmarks)
26+
}
27+
2428
const runtimeConfig = useRuntimeConfig()
2529
amp.init(runtimeConfig.public.AMP)
2630
@@ -29,10 +33,6 @@ onMounted(async () => {
2933
3034
Socket.init()
3135
32-
if (localStorage.bookmarks) {
33-
bookmarksStore.bookmarks = JSON.parse(localStorage.bookmarks)
34-
}
35-
3636
const gasPrice = await fetchGasPrice()
3737
appStore.gas = gasPrice
3838

0 commit comments

Comments
 (0)