Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有办法让h5的首页默认为 / 吗? #7375

Closed
gcxfd opened this issue Aug 19, 2020 · 2 comments
Closed

有办法让h5的首页默认为 / 吗? #7375

gcxfd opened this issue Aug 19, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@gcxfd
Copy link
Contributor

gcxfd commented Aug 19, 2020

这个特性解决了什么问题?

有办法让h5的首页默认为 / 吗?进来就是一长串url感觉不是很友好。

这个 API 长什么样?

如果有办法做一些hook就好了,但是没搞清楚如何去做,能给一些提示吗?

ps : taro的logo有svg版本吗?没找到

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Aug 19, 2020
@luckyadam
Copy link
Member

@remember-5
Copy link

config/prod.js中配置

module.exports = {
  ...
  h5: {
    router:{
      mode:'hash',
      customRoutes: {
        '/pages/index/index': '/'
      }
    }
  }
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants