浏览代码

Переименование

Book Pauk 5 年之前
父节点
当前提交
e388e2a1c7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/components/CardIndex/CardIndex.vue

+ 2 - 2
client/components/CardIndex/CardIndex.vue

@@ -12,7 +12,7 @@ import Vue from 'vue';
 import Component from 'vue-class-component';
 import _ from 'lodash';
 
-const rootRoute = '/cardindex';
+const selfRoute = '/cardindex';
 const tab2Route = [
     '/cardindex/search',
     '/cardindex/card',
@@ -45,7 +45,7 @@ class CardIndex extends Vue {
             if (t !== this.selectedTab)
                 this.selectedTab = t.toString();
         } else {
-            if (route == rootRoute && lastActiveTab !== null)
+            if (route == selfRoute && lastActiveTab !== null)
                 this.setRouteByTab(lastActiveTab);
         }
     }