mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Merge pull request #2600 from daiyam/fix-taglist
fix route when selecting multiple tags
This commit is contained in:
@@ -269,7 +269,7 @@ class SideNav extends React.Component {
|
|||||||
const tags = pathSegments[pathSegments.length - 1]
|
const tags = pathSegments[pathSegments.length - 1]
|
||||||
return (tags === 'alltags')
|
return (tags === 'alltags')
|
||||||
? []
|
? []
|
||||||
: tags.split(' ').map(tag => decodeURIComponent(tag))
|
: decodeURIComponent(tags).split(' ')
|
||||||
}
|
}
|
||||||
|
|
||||||
handleClickTagListItem (name) {
|
handleClickTagListItem (name) {
|
||||||
@@ -301,7 +301,7 @@ class SideNav extends React.Component {
|
|||||||
} else {
|
} else {
|
||||||
listOfTags.push(tag)
|
listOfTags.push(tag)
|
||||||
}
|
}
|
||||||
router.push(`/tags/${listOfTags.map(tag => encodeURIComponent(tag)).join(' ')}`)
|
router.push(`/tags/${encodeURIComponent(listOfTags.join(' '))}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
emptyTrash (entries) {
|
emptyTrash (entries) {
|
||||||
|
|||||||
Reference in New Issue
Block a user