This commit is contained in:
@@ -55,7 +55,6 @@ export default {
|
||||
recentVisited.value = JSON.parse(localStorage.getItem('recent-visited'))
|
||||
|
||||
if (recentVisited.value !== null) {
|
||||
recentVisited.value.reverse()
|
||||
if (window.innerWidth < 768) {
|
||||
recentVisited.value = recentVisited.value.filter(i => recentVisited.value.indexOf(i) < 6)
|
||||
}
|
||||
@@ -65,6 +64,7 @@ export default {
|
||||
const removeRecentVisited = (key) => {
|
||||
if (recentVisited.value !== null) {
|
||||
recentVisited.value.splice(key, 1)
|
||||
recentVisited.value.reverse()
|
||||
|
||||
localStorage.clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user