配置自定义路由。
Taro路径太长…太不友好了
http://192.168.99.185:10086/pages/index/index
可以通过配置config\index.js自定义路由来希解决
module.exports = {
// ...
h5: {
// ...
router: {
mode: 'browser',
customRoutes: {
'/pages/index/index': '/',
'/pages/application/application': '/application'
}
}
}
}
注:customRoutes路径根据app.config.ts进行配置