mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
chore: remove resource red dot (#5290)
This commit is contained in:
parent
e3c6e040b5
commit
1b711119ab
@ -14,7 +14,8 @@ const route = useRoute()
|
||||
const isVisited = ref(
|
||||
!!window.localStorage.getItem(USER_VISITED_NEW_RESOURCE_PAGE)
|
||||
)
|
||||
const isNewPage = (item: Link) => item.activeMatch === '/resource/'
|
||||
const isNewPage = (item: Link) => item.activeMatch === '/some_fake_path/'
|
||||
|
||||
const onNavClick = (item: Link) => {
|
||||
if (isNewPage(item) && !isVisited.value) {
|
||||
window.localStorage.setItem(
|
||||
|
Loading…
Reference in New Issue
Block a user