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

使用vue 过滤器,用switch-case报错 #395

Closed
xuxiaoxiao312 opened this issue Mar 13, 2017 · 1 comment
Closed

使用vue 过滤器,用switch-case报错 #395

xuxiaoxiao312 opened this issue Mar 13, 2017 · 1 comment

Comments

@xuxiaoxiao312
Copy link

filters: { iPhoneModel: function (value) { switch (value) { case 'iPhone1,1': return 'iPhone 2G' break default: return value } } }
image
该怎么正确使用switch case 它才不会报错呢

@posva
Copy link
Member

posva commented Mar 13, 2017

Please ask questions on the forum or StackOverflow.


That is just an eslint rule failing in your code

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

2 participants