Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-16 15:43:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e5c731ce3437638bafa9ee9d24d14121e8f9fa4
5e5c731c
1 parent
b08a146f
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
src/components/common/hagerHeader.vue
src/views/index.vue
src/views/product/detail.vue
src/components/common/hagerHeader.vue
View file @
5e5c731
<!--
* @Date: 2024-09-26 13:42:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-1
3 15:54:37
* @LastEditTime: 2024-12-1
6 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';
...
...
src/views/index.vue
View file @
5e5c731
...
...
@@ -270,7 +270,7 @@ export default {
watch: {
// 监听$route对象的变化
$route(to, from) {
console.log('路由变化了:', to.path);
//
console.log('路由变化了:', to.path);
}
},
methods: {
...
...
src/views/product/detail.vue
View file @
5e5c731
...
...
@@ -220,7 +220,7 @@ export default {
},
handlePopState(event) {
// 自定义跳转逻辑
console.log('popstate triggered', event);
//
console.log('popstate triggered', event);
// 例如:跳转到指定路径
// this.$router.push('/custom-page');
...
...
Please
register
or
login
to post a comment