omi-kbone - change build dir & fix web navigateTo

This commit is contained in:
dntzhang 2019-08-08 11:47:47 +08:00
parent daf1352a2a
commit f606e28966
2 changed files with 9 additions and 5 deletions

View File

@ -41,7 +41,7 @@ function getServedPath(appPackageJson) {
// config after eject: we're in ./config/
module.exports = {
dotenv: resolveApp('.env'),
appBuild: resolveApp('build'),
appBuild: resolveApp('build/web'),
appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'),
appIndexJs: resolveApp('src/index.js'),

View File

@ -24,10 +24,14 @@ Counter.store = _ => {
this.count--
this.update()
},
clickHandle(){
wx.navigateTo({
url: '../log/index?id=1',
})
clickHandle() {
if ("undefined" != typeof wx && wx.getSystemInfoSync) {
wx.navigateTo({
url: '../log/index?id=1'
})
} else {
location.href = 'log.html'
}
}
}
}