chore: remove resource red dot (#5290)

This commit is contained in:
iamkun 2022-01-11 05:55:50 +08:00 committed by GitHub
parent e3c6e040b5
commit 1b711119ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(