Browse Source

style: fix tags-view style bug

陈凯龙 3 years ago
parent
commit
ebff81777b
2 changed files with 3 additions and 6 deletions
  1. 1 5
      src/components/TagsView/src/TagsView.vue
  2. 2 1
      src/router/index.ts

+ 1 - 5
src/components/TagsView/src/TagsView.vue

@@ -469,7 +469,7 @@ watch(
     position: relative;
     top: 2px;
     height: calc(~'100% - 4px');
-    // padding: 0 15px;
+    padding-right: 25px;
     font-size: 12px;
     cursor: pointer;
     border: 1px solid #d9d9d9;
@@ -488,10 +488,6 @@ watch(
     }
   }
 
-  &__item:not(.@{prefix-cls}__item--affix) {
-    padding-right: 25px;
-  }
-
   &__item:not(.is-active) {
     &:hover {
       color: var(--el-color-primary);

+ 2 - 1
src/router/index.ts

@@ -73,7 +73,8 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
         name: 'Analysis',
         meta: {
           title: t('router.analysis'),
-          noCache: true
+          noCache: true,
+          affix: true
         }
       },
       {