Skip to content

Commit

Permalink
build:h5
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 23, 2020
1 parent a5a2f24 commit 6053639
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ service.run('build', {
formats: process.env.UNI_WATCH === 'true' ? 'umd' : 'umd-min',
entry,
'inline-vue': !!process.env.UNI_VIEW,
// clean: !process.env.UNI_VIEW,
clean: false, //! process.env.UNI_VIEW,
mode: process.env.NODE_ENV
}).then(function () {
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-h5/dist/index.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/uni-quickapp-light/lib/uni.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
const copyOptions = []
let jsConfigPath = path.resolve(process.env.UNI_INPUT_DIR, 'jsconfig.json')
if (!fs.existsSync(jsConfigPath)) {
jsConfigPath = path.resolve(__dirname, 'assets/jsconfig.json')
jsConfigPath = path.resolve(__dirname, 'assets/jsconfig.json')
}
copyOptions.push(jsConfigPath)

Expand Down
4 changes: 2 additions & 2 deletions src/core/helpers/protocol/route/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function createValidator (type) {
}
}

// tabBar不允许传递参数
if (routeOptions.meta.isTabBar) {
// switchTab不允许传递参数,reLaunch到一个tabBar页面是可以的
if (type === 'switchTab' && routeOptions.meta.isTabBar) {
url = pagePath
}

Expand Down

0 comments on commit 6053639

Please sign in to comment.