提交 3aefa683 编写于 作者: X xiaoyucoding

fix: 修复 navigator 组件 navigatorBack 限制了 url 参数的问题 #195

上级 2eb88ea7
......@@ -58,7 +58,7 @@ export default {
methods: {
_onClick ($event) {
if (!this.url) {
if (this.openType !== 'navigateBack' && !this.url) {
console.error(`<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab`)
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册