Преглед изворни кода

Revert "fix: multi-tab with params #344"

This reverts commit 0d37f33183b83f2bb907826a66446971e3e26109.
言肆 пре 5 година
родитељ
комит
73f0a67ca9
2 измењених фајлова са 4 додато и 5 уклоњено
  1. 2 2
      src/layouts/RouteView.vue
  2. 2 3
      src/views/list/TableList.vue

+ 2 - 2
src/layouts/RouteView.vue

@@ -14,11 +14,11 @@ export default {
     const { $route: { meta }, $store: { getters } } = this
     const inKeep = (
       <keep-alive>
-        <router-view key={ this.$route.fullPath }/>
+        <router-view />
       </keep-alive>
     )
     const notKeep = (
-      <router-view key={ this.$route.fullPath }/>
+      <router-view />
     )
     // 这里增加了 multiTab 的判断,当开启了 multiTab 时
     // 应当全部组件皆缓存,否则会导致切换页面后页面还原成原始状态

+ 2 - 3
src/views/list/TableList.vue

@@ -96,10 +96,9 @@
         <ellipsis :length="4" tooltip>{{ text }}</ellipsis>
       </span>
 
-      <span slot="action" slot-scope="text, record, index">
+      <span slot="action" slot-scope="text, record">
         <template>
-          <router-link :to="{ name: 'TableListWrapper', query: { id: index } }" v-if="index < 2">新页面</router-link>
-          <a v-else @click="handleEdit(record)">配置</a>
+          <a @click="handleEdit(record)">配置</a>
           <a-divider type="vertical" />
           <a @click="handleSub(record)">订阅报警</a>
         </template>