fix: 修复Safari和Chrome浏览器底部控件显示问题#42
Open
landun-maotao wants to merge 1 commit intoxiangshu233:mainfrom
Open
Conversation
## 问题描述 在Safari和Chrome浏览器中,登录成功后底部的控件(tabbar)不显示,而在UC浏览器中可以正常显示。 ## 解决方案 1. 使用dvh单位替换vh单位,以适应不同浏览器的动态视口高度 2. 为不支持dvh的浏览器提供降级方案,使用calc(100vh - var(--vh-offset)) 3. 添加视口高度处理工具函数,动态计算和更新视口高度偏移量 ## 修改内容 - 修改layout/index.vue中的高度单位 - 修改index.html中的加载动画容器高度 - 添加视口高度处理工具函数 - 在应用启动时初始化视口高度处理 ## 相关issue Closes xiangshu233#38
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
在Safari和Chrome浏览器中,登录成功后底部的控件(tabbar)不显示,而在UC浏览器中可以正常显示。
解决方案
修改内容
相关issue
Closes #38