提交 a59a9b82 编写于 作者: Q qiang

fix: 解决隐藏tabbar后tab页高度不正确的问题

上级 b47f7fae
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
}, },
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@types/html5plus": "^1.0.0",
"@vue/cli-plugin-babel": "^3.4.1", "@vue/cli-plugin-babel": "^3.4.1",
"@vue/cli-plugin-eslint": "^3.4.1", "@vue/cli-plugin-eslint": "^3.4.1",
"@vue/cli-plugin-unit-mocha": "^3.4.1", "@vue/cli-plugin-unit-mocha": "^3.4.1",
...@@ -118,4 +119,4 @@ ...@@ -118,4 +119,4 @@
"main": "index.js", "main": "index.js",
"description": "", "description": "",
"author": "" "author": ""
} }
...@@ -57,7 +57,7 @@ export function isTabBarPage (path = '') { ...@@ -57,7 +57,7 @@ export function isTabBarPage (path = '') {
} }
return page.$page.meta.isTabBar return page.$page.meta.isTabBar
} }
return __uniRoutes.find(route => route.path === path).meta.isTabBar return !!__uniRoutes.find(route => route.path.slice(1) === path)
} catch (e) { } catch (e) {
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
console.log('getCurrentPages is not ready') console.log('getCurrentPages is not ready')
......
...@@ -29,6 +29,8 @@ export function registerPage ({ ...@@ -29,6 +29,8 @@ export function registerPage ({
if (!webview) { if (!webview) {
webview = createWebview(path, routeOptions) webview = createWebview(path, routeOptions)
} else {
webview = plus.webview.getWebviewById(webview.id)
} }
if (routeOptions.meta.isTabBar) { if (routeOptions.meta.isTabBar) {
...@@ -75,4 +77,4 @@ export function registerPage ({ ...@@ -75,4 +77,4 @@ export function registerPage ({
}) })
return webview return webview
} }
...@@ -687,6 +687,10 @@ ...@@ -687,6 +687,10 @@
"@types/minimatch" "*" "@types/minimatch" "*"
"@types/node" "*" "@types/node" "*"
"@types/html5plus@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/html5plus/-/html5plus-1.0.0.tgz#a88600fc9de85b785959754aea403c0a8d0714ba"
"@types/minimatch@*": "@types/minimatch@*":
version "3.0.3" version "3.0.3"
resolved "https://registry.npm.taobao.org/@types/minimatch/download/@types/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" resolved "https://registry.npm.taobao.org/@types/minimatch/download/@types/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册