fix: 后退前进功能
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user