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

isRouterLink="true"之后报错 #13

Closed
hiseab opened this issue May 30, 2018 · 6 comments
Closed

isRouterLink="true"之后报错 #13

hiseab opened this issue May 30, 2018 · 6 comments

Comments

@hiseab
Copy link

hiseab commented May 30, 2018

Invalid prop: type check failed for prop "to". Expected String, Object, got Boolean

@lfyfly
Copy link
Owner

lfyfly commented May 30, 2018

好像是你赋予router-linkto属性(也就是imgArr里图片跳转链接)数据类型错了

@hiseab
Copy link
Author

hiseab commented May 30, 2018

谢谢回复,我用的是例子里的data-router-link.json的数据啊,也报错
{
"src": "./static/img/1.jpg",
"href": "/test",
"info": "一些图片描述文字"
},

@lfyfly
Copy link
Owner

lfyfly commented May 31, 2018

是我的问题,已经在 vue-waterfall-easy@2.1.5 修复了,你更新下试试

@hiseab
Copy link
Author

hiseab commented May 31, 2018

更新了,但是 我这样:isRouterLink="true" :linkRange="img" 还是报错:
[Vue warn]: Property or method "img" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property

@lfyfly
Copy link
Owner

lfyfly commented May 31, 2018

linkRangeString类型啊,不需要加冒号

@lfyfly lfyfly closed this as completed May 31, 2018
@lyh2
Copy link

lyh2 commented Apr 19, 2019

自定义跳转问题,添加@click事件也是成功的。但是返回的时候,中间多了一个页面,也就是a标签跳转的页面?怎么解决?

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

3 participants