提交 ed4528c5 编写于 作者: Q qiang

fix: 修复含有 subPackages 时首页错误的问题

上级 b788d783
...@@ -360,7 +360,7 @@ module.exports = function (pagesJson, userManifestJson) { ...@@ -360,7 +360,7 @@ module.exports = function (pagesJson, userManifestJson) {
manifestJson.launch_path = '' manifestJson.launch_path = ''
Object.assign(manifestJson.plus.launchwebview, { Object.assign(manifestJson.plus.launchwebview, {
uniNView: { uniNView: {
path: appJson.pages[0] path: appJson.entryPagePath
} }
}) })
} else if (isNVueEntryPage) { } else if (isNVueEntryPage) {
...@@ -377,7 +377,7 @@ module.exports = function (pagesJson, userManifestJson) { ...@@ -377,7 +377,7 @@ module.exports = function (pagesJson, userManifestJson) {
manifestJson.plus.launchwebview.id = '2' manifestJson.plus.launchwebview.id = '2'
} else { } else {
// 首页是 tabBar 页面 // 首页是 tabBar 页面
const item = tabBar.list.find(page => page.pagePath === (process.env.UNI_USING_NATIVE ? appJson.pages[0] : entryPagePath)) const item = tabBar.list.find(page => page.pagePath === (process.env.UNI_USING_NATIVE ? appJson.entryPagePath : entryPagePath))
if (item) { if (item) {
tabBar.child = ['lauchwebview'] tabBar.child = ['lauchwebview']
tabBar.selected = tabBar.list.indexOf(item) tabBar.selected = tabBar.list.indexOf(item)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册