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

build:h5

上级 a5a2f24e
...@@ -40,7 +40,7 @@ service.run('build', { ...@@ -40,7 +40,7 @@ service.run('build', {
formats: process.env.UNI_WATCH === 'true' ? 'umd' : 'umd-min', formats: process.env.UNI_WATCH === 'true' ? 'umd' : 'umd-min',
entry, entry,
'inline-vue': !!process.env.UNI_VIEW, 'inline-vue': !!process.env.UNI_VIEW,
// clean: !process.env.UNI_VIEW, clean: false, //! process.env.UNI_VIEW,
mode: process.env.NODE_ENV mode: process.env.NODE_ENV
}).then(function () { }).then(function () {
if ( if (
......
...@@ -41,7 +41,7 @@ module.exports = { ...@@ -41,7 +41,7 @@ module.exports = {
const copyOptions = [] const copyOptions = []
let jsConfigPath = path.resolve(process.env.UNI_INPUT_DIR, 'jsconfig.json') let jsConfigPath = path.resolve(process.env.UNI_INPUT_DIR, 'jsconfig.json')
if (!fs.existsSync(jsConfigPath)) { if (!fs.existsSync(jsConfigPath)) {
jsConfigPath = path.resolve(__dirname, 'assets/jsconfig.json') jsConfigPath = path.resolve(__dirname, 'assets/jsconfig.json')
} }
copyOptions.push(jsConfigPath) copyOptions.push(jsConfigPath)
......
...@@ -60,8 +60,8 @@ function createValidator (type) { ...@@ -60,8 +60,8 @@ function createValidator (type) {
} }
} }
// tabBar不允许传递参数 // switchTab不允许传递参数,reLaunch到一个tabBar页面是可以的
if (routeOptions.meta.isTabBar) { if (type === 'switchTab' && routeOptions.meta.isTabBar) {
url = pagePath url = pagePath
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册