Showing
3 changed files
with
7 additions
and
7 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-26 13:42:11 | 2 | * @Date: 2024-09-26 13:42:11 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-12-13 15:54:37 | 4 | + * @LastEditTime: 2024-12-16 15:20:41 |
| 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue | 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -269,11 +269,11 @@ export default { | ... | @@ -269,11 +269,11 @@ export default { |
| 269 | const availableHeight = windowHeight - topOffset; | 269 | const availableHeight = windowHeight - topOffset; |
| 270 | 270 | ||
| 271 | if (isElementVisible($productRightWrapper)) { | 271 | if (isElementVisible($productRightWrapper)) { |
| 272 | - console.log(".product-right-wrapper 完全可见"); | 272 | + // console.log(".product-right-wrapper 完全可见"); |
| 273 | productRightWrapper.style.removeProperty('height'); | 273 | productRightWrapper.style.removeProperty('height'); |
| 274 | productRightWrapper.style.removeProperty('overflow-y'); | 274 | productRightWrapper.style.removeProperty('overflow-y'); |
| 275 | } else { | 275 | } else { |
| 276 | - console.log(".product-right-wrapper 被部分或完全遮挡"); | 276 | + // console.log(".product-right-wrapper 被部分或完全遮挡"); |
| 277 | // 设置 .product-right-wrapper 的最大高度,确保不会溢出窗口 | 277 | // 设置 .product-right-wrapper 的最大高度,确保不会溢出窗口 |
| 278 | productRightWrapper.style.height = availableHeight + 'px'; | 278 | productRightWrapper.style.height = availableHeight + 'px'; |
| 279 | productRightWrapper.style.overflowY = 'scroll'; | 279 | productRightWrapper.style.overflowY = 'scroll'; |
| ... | @@ -339,11 +339,11 @@ export default { | ... | @@ -339,11 +339,11 @@ export default { |
| 339 | const availableHeight = windowHeight - topOffset; | 339 | const availableHeight = windowHeight - topOffset; |
| 340 | 340 | ||
| 341 | if (isElementVisible($productRightWrapper)) { | 341 | if (isElementVisible($productRightWrapper)) { |
| 342 | - console.log(".product-right-wrapper 完全可见"); | 342 | + // console.log(".product-right-wrapper 完全可见"); |
| 343 | productRightWrapper.style.removeProperty('height'); | 343 | productRightWrapper.style.removeProperty('height'); |
| 344 | productRightWrapper.style.removeProperty('overflow-y'); | 344 | productRightWrapper.style.removeProperty('overflow-y'); |
| 345 | } else { | 345 | } else { |
| 346 | - console.log(".product-right-wrapper 被部分或完全遮挡"); | 346 | + // console.log(".product-right-wrapper 被部分或完全遮挡"); |
| 347 | // 设置 .product-right-wrapper 的最大高度,确保不会溢出窗口 | 347 | // 设置 .product-right-wrapper 的最大高度,确保不会溢出窗口 |
| 348 | productRightWrapper.style.height = availableHeight + 'px'; | 348 | productRightWrapper.style.height = availableHeight + 'px'; |
| 349 | productRightWrapper.style.overflowY = 'scroll'; | 349 | productRightWrapper.style.overflowY = 'scroll'; | ... | ... |
| ... | @@ -270,7 +270,7 @@ export default { | ... | @@ -270,7 +270,7 @@ export default { |
| 270 | watch: { | 270 | watch: { |
| 271 | // 监听$route对象的变化 | 271 | // 监听$route对象的变化 |
| 272 | $route(to, from) { | 272 | $route(to, from) { |
| 273 | - console.log('路由变化了:', to.path); | 273 | + // console.log('路由变化了:', to.path); |
| 274 | } | 274 | } |
| 275 | }, | 275 | }, |
| 276 | methods: { | 276 | methods: { | ... | ... |
| ... | @@ -220,7 +220,7 @@ export default { | ... | @@ -220,7 +220,7 @@ export default { |
| 220 | }, | 220 | }, |
| 221 | handlePopState(event) { | 221 | handlePopState(event) { |
| 222 | // 自定义跳转逻辑 | 222 | // 自定义跳转逻辑 |
| 223 | - console.log('popstate triggered', event); | 223 | + // console.log('popstate triggered', event); |
| 224 | 224 | ||
| 225 | // 例如:跳转到指定路径 | 225 | // 例如:跳转到指定路径 |
| 226 | // this.$router.push('/custom-page'); | 226 | // this.$router.push('/custom-page'); | ... | ... |
-
Please register or login to post a comment