feat:#1658 增加全局订阅 setQuery 用户可以动态变更当前页query而不产生新的tab
This commit is contained in:
@@ -301,7 +301,7 @@ const initPage = () => {
|
||||
activeValue.value = getFmtString(historys.value[index])
|
||||
const currentUrl = window.location.href.split('?')[0]
|
||||
const currentSearchParams = new URLSearchParams(data).toString()
|
||||
window.history.pushState({}, '', `${currentUrl}?${currentSearchParams}`)
|
||||
window.history.replaceState({}, '', `${currentUrl}?${currentSearchParams}`)
|
||||
sessionStorage.setItem('historys', JSON.stringify(historys.value))
|
||||
})
|
||||
const initHistorys = [
|
||||
|
||||
Reference in New Issue
Block a user