lisenzhou 2 years ago
parent
commit
f8b2982502
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/components/Image.vue

+ 4
- 0
src/components/Image.vue View File

132
 
132
 
133
 // 显示详情介绍
133
 // 显示详情介绍
134
 const onShowInfoBtn = () => {
134
 const onShowInfoBtn = () => {
135
+window.console.log(document,'document')
136
+  document.body.style.overflow='hidden';
137
+
135
   showInfo.value=true
138
   showInfo.value=true
136
 };
139
 };
137
 
140
 
138
 const onCloseInfoBtn = () => {
141
 const onCloseInfoBtn = () => {
142
+  document.body.style.overflow='auto';
139
   showInfo.value=false
143
   showInfo.value=false
140
 };
144
 };
141
 
145