omi-kbone - change build dir & fix web navigateTo
This commit is contained in:
parent
daf1352a2a
commit
f606e28966
|
@ -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'),
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue