Browse Source

全局popper

shaun-sheep 4 years ago
parent
commit
1dce0d3f65
2 changed files with 5 additions and 5 deletions
  1. 5 1
      src/App.vue
  2. 0 4
      src/views/legendLibrary/index.vue

+ 5 - 1
src/App.vue

@@ -49,7 +49,7 @@ export default {
     },
     mounted() {
         this.isMounted = true
-        this.plazaIds = localStorage.getItem('PLAZAID');
+        this.plazaIds = localStorage.getItem('PLAZAID')
     },
     computed: {
         ...mapGetters(['plazaId', 'fmapID', 'haveFengMap', 'accessLevel']),
@@ -349,4 +349,8 @@ body {
         padding-right: 0;
     }
 }
+.el-tooltip__popper {
+    max-width: 600px !important;
+    line-height: 20px !important;
+}
 </style>

+ 0 - 4
src/views/legendLibrary/index.vue

@@ -652,10 +652,6 @@ export default {
 }
 </style>
 <style lang="less">
-.el-tooltip__popper {
-    max-width: 600px !important;
-    line-height: 20px !important;
-}
 @media screen and (max-height: 800px) {
     .legend-library-bottom {
         overflow-y: auto;