hookehuyr

fix

<!--
* @Date: 2024-09-26 13:42:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-13 15:54:37
* @LastEditTime: 2024-12-16 15:20:41
* @FilePath: /hager/src/components/common/hagerHeader.vue
* @Description: 文件描述
-->
......@@ -269,11 +269,11 @@ export default {
const availableHeight = windowHeight - topOffset;
if (isElementVisible($productRightWrapper)) {
console.log(".product-right-wrapper 完全可见");
// console.log(".product-right-wrapper 完全可见");
productRightWrapper.style.removeProperty('height');
productRightWrapper.style.removeProperty('overflow-y');
} else {
console.log(".product-right-wrapper 被部分或完全遮挡");
// console.log(".product-right-wrapper 被部分或完全遮挡");
// 设置 .product-right-wrapper 的最大高度,确保不会溢出窗口
productRightWrapper.style.height = availableHeight + 'px';
productRightWrapper.style.overflowY = 'scroll';
......@@ -339,11 +339,11 @@ export default {
const availableHeight = windowHeight - topOffset;
if (isElementVisible($productRightWrapper)) {
console.log(".product-right-wrapper 完全可见");
// console.log(".product-right-wrapper 完全可见");
productRightWrapper.style.removeProperty('height');
productRightWrapper.style.removeProperty('overflow-y');
} else {
console.log(".product-right-wrapper 被部分或完全遮挡");
// console.log(".product-right-wrapper 被部分或完全遮挡");
// 设置 .product-right-wrapper 的最大高度,确保不会溢出窗口
productRightWrapper.style.height = availableHeight + 'px';
productRightWrapper.style.overflowY = 'scroll';
......
......@@ -270,7 +270,7 @@ export default {
watch: {
// 监听$route对象的变化
$route(to, from) {
console.log('路由变化了:', to.path);
// console.log('路由变化了:', to.path);
}
},
methods: {
......
......@@ -220,7 +220,7 @@ export default {
},
handlePopState(event) {
// 自定义跳转逻辑
console.log('popstate triggered', event);
// console.log('popstate triggered', event);
// 例如:跳转到指定路径
// this.$router.push('/custom-page');
......