Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tab router #164

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/layouts/components/LayoutContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:value="route.path"
:key="`${route.path}_${idx}`"
:removable="!route.isHome"
@remove="() => this.handleRemove(route.path, idx)"
@remove="() => handleRemove(route.path, idx)"
>
<template #label>
<t-dropdown
Expand All @@ -26,23 +26,23 @@
</template>
<home-icon v-else />
<template #dropdown>
<t-dropdown-menu v-if="this.$route.path === route.path">
<t-dropdown-item @click="() => this.handleRefresh(route.path, idx)">
<t-dropdown-menu v-if="$route.path === route.path">
<t-dropdown-item @click="() => handleRefresh(route.path, idx)">
<refresh-icon />
刷新
</t-dropdown-item>
<t-dropdown-item v-if="idx > 0" @lick="() => this.handleCloseAhead(route.path, idx)">
<t-dropdown-item v-if="idx > 0" @lick="() => handleCloseAhead(route.path, idx)">
<arrow-left-icon />
关闭左侧
</t-dropdown-item>
<t-dropdown-item
v-if="idx < this.tabRouterList.length - 1"
@click="() => this.handleCloseBehind(route.path, idx)"
v-if="idx < tabRouterList.length - 1"
@click="() => handleCloseBehind(route.path, idx)"
>
<arrow-right-icon />
关闭右侧
</t-dropdown-item>
<t-dropdown-item @click="() => this.handleCloseOther(route.path, idx)">
<t-dropdown-item @click="() => handleCloseOther(route.path, idx)">
<close-circle-icon />
关闭其它
</t-dropdown-item>
Expand Down