소스 검색

看板通知内容超出后水平滚动

damon227 2 년 전
부모
커밋
9827b1c90c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/modules/home/admin.vue
  2. 1 1
      src/views/modules/home/customer.vue

+ 1 - 1
src/views/modules/home/admin.vue

@@ -450,7 +450,7 @@ export default {
       this.$nextTick(() => {
         let boxWidth = this.$refs.boxnoticetitle.offsetWidth;
         let contentWidth = this.$refs.noticetitle.offsetWidth;
-        if(contentWidth > boxWidth + 20){
+        if(contentWidth > boxWidth){
           //设置水平滚动效果
           this.isTran = true;
         }

+ 1 - 1
src/views/modules/home/customer.vue

@@ -372,7 +372,7 @@ export default {
       this.$nextTick(() => {
         let boxWidth = this.$refs.boxnoticetitle.offsetWidth;
         let contentWidth = this.$refs.noticetitle.offsetWidth;
-        if(contentWidth > boxWidth + 20){
+        if(contentWidth > boxWidth){
           //设置水平滚动效果
           this.isTran = true;
         }