caiaa1 hai 1 ano
pai
achega
33c1ec1be7

+ 1 - 1
src/layout/components/AppMain.vue

@@ -31,7 +31,7 @@ export default {
   min-height: calc(100vh - #{$headerHeight});
   width: 100%;
   position: relative;
-  // overflow: hidden;
+  overflow: auto;
   padding-bottom: $footerHeight;
 
   &>div:not(.home-container) {

+ 6 - 1
src/layout/components/TagsView/index.vue

@@ -173,6 +173,7 @@ export default {
     openMenu(tag, e) {
       const menuMinWidth = 105
       const offsetLeft = this.$el.getBoundingClientRect().left // container margin left
+      const offsetTop = this.$el.getBoundingClientRect().top // container margin left
       const offsetWidth = this.$el.offsetWidth // container width
       const maxLeft = offsetWidth - menuMinWidth // left boundary
       const left = e.clientX - offsetLeft + 15 // 15: margin right
@@ -183,7 +184,11 @@ export default {
         this.left = left
       }
 
-      this.top = e.clientY
+      if (this.$store.state.settings.fixedHeader) {
+        this.top = e.clientY - offsetTop
+      } else {
+        this.top = e.clientY
+      }
       this.visible = true
       this.selectedTag = tag
     },

+ 2 - 1
src/views/info/components/NoticeAdd.vue

@@ -1,6 +1,7 @@
 <template>
   <div>
     <el-dialog
+      v-if="visible"
       v-loading="loading"
       :visible.sync="visible"
       :close-on-press-escape="true"
@@ -64,7 +65,7 @@ export default {
         id: null,
         messageType: 1,
         title: '',
-        scopeIds: [],
+        scopeIds: '',
         attachmentPath: '',
         attachmentName: '',
         content: ''