Skip to content

Commit 55a870b

Browse files
committed
fix: refresh menu badges after closing CTA for improved user experience
1 parent 4a57bc9 commit 55a870b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adminforth/spa/src/App.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,12 @@ function closeCTA() {
429429
}
430430
const hash = ctaBadge.value.hash;
431431
window.localStorage.setItem(`ctaBadge-${hash}`, '1');
432+
nextTick( async() => {
433+
loadMenu();
434+
await coreStore.fetchMenuBadges();
435+
adminforth.menu.refreshMenuBadges();
436+
})
437+
432438
}
433439
434440

0 commit comments

Comments
 (0)