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 <router-link
ref="tagRef" ref="tagRef"
v-for="tag in visitedViews" v-for="tag in visitedViews"
:key="tag.path" :key="tag.fullPath"
:class="'tags-item ' + (isActive(tag) ? 'active' : '')" :class="'tags-item ' + (isActive(tag) ? 'active' : '')"
:data-path="tag.path" :to="{ path: tag.fullPath, query: tag.query }"
:to="{ path: tag.path, query: tag.query }"
@click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''" @click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''"
@contextmenu.prevent="openTagMenu(tag, $event)" @contextmenu.prevent="openTagMenu(tag, $event)"
> >
{{ translateRouteTitle(tag.title) }} {{ translateRouteTitle(tag.title) }}
<span
v-if="!isAffix(tag)" <span class="inline-block hover:color-white rounded-full">
class="tags-item-close" <i-ep-close
@click.prevent.stop="closeSelectedTag(tag)" size="12px"
> v-if="!isAffix(tag)"
<i-ep-close size="10px" /> @click.prevent.stop="closeSelectedTag(tag)"
/>
</span> </span>
</router-link> </router-link>
</scroll-pane> </scroll-pane>
@@ -411,15 +411,6 @@ onMounted(() => {
border-radius: 50%; 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: "/", path: "/",
name: "/",
component: Layout, component: Layout,
redirect: "/dashboard", redirect: "/dashboard",
children: [ children: [