Browse Source

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

Book Pauk 5 years ago
parent
commit
e388e2a1c7
1 changed files with 2 additions and 2 deletions
  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 Component from 'vue-class-component';
 import _ from 'lodash';
 import _ from 'lodash';
 
 
-const rootRoute = '/cardindex';
+const selfRoute = '/cardindex';
 const tab2Route = [
 const tab2Route = [
     '/cardindex/search',
     '/cardindex/search',
     '/cardindex/card',
     '/cardindex/card',
@@ -45,7 +45,7 @@ class CardIndex extends Vue {
             if (t !== this.selectedTab)
             if (t !== this.selectedTab)
                 this.selectedTab = t.toString();
                 this.selectedTab = t.toString();
         } else {
         } else {
-            if (route == rootRoute && lastActiveTab !== null)
+            if (route == selfRoute && lastActiveTab !== null)
                 this.setRouteByTab(lastActiveTab);
                 this.setRouteByTab(lastActiveTab);
         }
         }
     }
     }