fix: 后退前进功能

This commit is contained in:
chenjinsong
2022-10-09 18:47:09 +08:00
parent 313591a5ef
commit 705bc0d58d
11 changed files with 42 additions and 96 deletions

View File

@@ -42,19 +42,6 @@ export default {
},
dateFormatByAppearance (date) {
return dateFormatByAppearance(date)
},
jumpAndCache (path, query) {
query.t = new Date().getTime()
const historyJSON = sessionStorage.getItem(storageKey.history)
if (history) {
const history = JSON.parse(historyJSON)
history.index = -1
sessionStorage.setItem(storageKey.history, JSON.stringify(history))
this.$router.push({
path: path,
query: query
})
}
}
}
}