fix: 🐛 首页点击无法跳转问题修复

This commit is contained in:
hxr
2024-01-12 00:14:35 +08:00
parent 9d0840b8fc
commit a71f66a4e4
2 changed files with 9 additions and 19 deletions

View File

@@ -4,20 +4,20 @@
<router-link
ref="tagRef"
v-for="tag in visitedViews"
:key="tag.path"
:key="tag.fullPath"
:class="'tags-item ' + (isActive(tag) ? 'active' : '')"
:data-path="tag.path"
:to="{ path: tag.path, query: tag.query }"
:to="{ path: tag.fullPath, query: tag.query }"
@click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''"
@contextmenu.prevent="openTagMenu(tag, $event)"
>
{{ translateRouteTitle(tag.title) }}
<span
v-if="!isAffix(tag)"
class="tags-item-close"
@click.prevent.stop="closeSelectedTag(tag)"
>
<i-ep-close size="10px" />
<span class="inline-block hover:color-white rounded-full">
<i-ep-close
size="12px"
v-if="!isAffix(tag)"
@click.prevent.stop="closeSelectedTag(tag)"
/>
</span>
</router-link>
</scroll-pane>
@@ -411,15 +411,6 @@ onMounted(() => {
border-radius: 50%;
}
}
&-close {
border-radius: 100%;
&:hover {
color: #fff;
background: rgb(0 0 0 / 16%);
}
}
}
}

View File

@@ -24,7 +24,6 @@ export const constantRoutes: RouteRecordRaw[] = [
{
path: "/",
name: "/",
component: Layout,
redirect: "/dashboard",
children: [