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

【快应用】路由跳转API不支持相对路径,需要绝对化 #4375

Closed
Qiyu8 opened this issue Sep 3, 2019 · 2 comments
Closed

【快应用】路由跳转API不支持相对路径,需要绝对化 #4375

Qiyu8 opened this issue Sep 3, 2019 · 2 comments

Comments

@Qiyu8
Copy link
Collaborator

Qiyu8 commented Sep 3, 2019

问题描述
Taro中a.jsx写法如下:

bindViewTap = () => {
  Taro.navigateTo({
     url: '../location/location'
  })
}

在转为快应用之后,触发bindViewTap之后没有跳转到location页面

复现步骤
1.编写包含相对路径的泰罗程序
2.执行taro build --type quickapp

期望行为
taro运行时会将相对路径转换为绝对路径,因为快应用只支持类似于/pages/location/location的路径

报错信息
无响应

系统信息
操作系统: Windows 10
Taro 版本 v1.3.17
Node.js 版本 v12.7.0
报错平台 weapp
补充信息
经过试验,reLaunch、switchTab和redirectTo也存在这个问题

@taro-bot
Copy link

taro-bot bot commented Sep 3, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@jiongrui
Copy link

这个问题似乎没解决啊,啥时候能解决一下呢?

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

No branches or pull requests

4 participants