Skip to content

Commit

Permalink
Merge branch 'main' into release/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqing committed Sep 11, 2023
2 parents 3444332 + b2385a1 commit 5b0e0b4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Changelog


## v1.5.2

[compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v1.5.1...v1.5.2)

### 🩹 Fixes

- Tags view moveToCurrentTag fullPath error ([9b5241b](https://github.com/yisibell/vue3-admin-starter/commit/9b5241b))

### ❤️ Contributors

- Wenqing <wenqing@kerrylan.com>

## v1.5.1

[compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v1.5.0...v1.5.1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-admin-starter",
"version": "1.5.1",
"version": "1.5.2",
"description": "A vue admin template powered by vite + typescript + vue3 + vue-router + pinia + element-plus + axios.",
"author": {
"name": "elenh",
Expand Down
7 changes: 4 additions & 3 deletions src/layouts/default/TagsView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:ref="getTagVNodes"
:key="tag.fullPath"
:class="tag.path === route.path ? 'active' : ''"
:to="{ path: `${tag.path}`, query: tag.query, fullPath: `${tag.fullPath}` }"
:to="{ path: `${tag.path}`, query: tag.query }"
class="tags-view-item"
@click.middle="closeSelectedTag(tag)"
@contextmenu.prevent="openMenu(tag, $event)"
Expand Down Expand Up @@ -165,14 +165,15 @@ const moveToCurrentTag = () => {
nextTick(() => {
for (const tag of tags) {
const to = tag.to as ITagView
const to = tag.to as Pick<ITagView, 'path' | 'query'>
const targetEl = tag.$el as HTMLAnchorElement
const tagFullPath = router.resolve({ path: to.path, query: to.query }).fullPath
if (to.path === route.path) {
scrollPane.value?.moveToTarget(targetEl)
// when query is different then update
if (tag.fullPath !== route.fullPath) {
if (tagFullPath !== route.fullPath) {
TagsViewStore.updateVisitedView(route)
}
Expand Down

0 comments on commit 5b0e0b4

Please sign in to comment.