提交 80ba08d9 编写于 作者: fxy060608's avatar fxy060608

build uni-app-plus-nvue

上级 e3853192
...@@ -162,7 +162,7 @@ var serviceContext = (function () { ...@@ -162,7 +162,7 @@ var serviceContext = (function () {
} }
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');
...@@ -766,6 +766,8 @@ var serviceContext = (function () { ...@@ -766,6 +766,8 @@ var serviceContext = (function () {
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册