Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
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
2022-05-16 12:53:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b3302afe7afb2be97cefb1b73d7a2ec1cc75ddad
b3302afe
1 parent
2eb88550
fix 首页刷新需要兼容平台
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/views/client/index.vue
src/views/client/index.vue
View file @
b3302af
...
...
@@ -36,6 +36,7 @@ import { Toast } from 'vant';
import { nextTick, onMounted, reactive, ref, watch } from 'vue'
import axios from '@/utils/axios';
import { wxInfo } from '@/utils/tools';
// 滚动条判断
function hasScrollbar() {
...
...
@@ -46,8 +47,10 @@ onMounted(() => {
// TODO: 临时处理位置不对问题
// 因为微信第一次进入默认全屏,之后产生的导航栏会影响位置
if (hasScrollbar()) {
if (wxInfo().isiOS || wxInfo().isAndroid) {
location.reload()
}
}
})
const $route = useRoute();
...
...
Please
register
or
login
to post a comment