Skip to content

Commit 73f0a67

Browse files
committed
Revert "fix: multi-tab with params #344"
This reverts commit 0d37f33.
1 parent 4dec616 commit 73f0a67

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/layouts/RouteView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export default {
1414
const { $route: { meta }, $store: { getters } } = this
1515
const inKeep = (
1616
<keep-alive>
17-
<router-view key={ this.$route.fullPath }/>
17+
<router-view />
1818
</keep-alive>
1919
)
2020
const notKeep = (
21-
<router-view key={ this.$route.fullPath }/>
21+
<router-view />
2222
)
2323
// 这里增加了 multiTab 的判断,当开启了 multiTab 时
2424
// 应当全部组件皆缓存,否则会导致切换页面后页面还原成原始状态

src/views/list/TableList.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@
9696
<ellipsis :length="4" tooltip>{{ text }}</ellipsis>
9797
</span>
9898

99-
<span slot="action" slot-scope="text, record, index">
99+
<span slot="action" slot-scope="text, record">
100100
<template>
101-
<router-link :to="{ name: 'TableListWrapper', query: { id: index } }" v-if="index < 2">新页面</router-link>
102-
<a v-else @click="handleEdit(record)">配置</a>
101+
<a @click="handleEdit(record)">配置</a>
103102
<a-divider type="vertical" />
104103
<a @click="handleSub(record)">订阅报警</a>
105104
</template>

0 commit comments

Comments
 (0)