We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
computed: { cartOpened: { get () { return this._cartOpened }, set (val) { this.setCartOpened(val) } }, ...mapState({ cart: state => state.shop.cart, products: state => state.shop.products, _cartOpened: state => state.shop.cartOpened }) },
The statement ...mapState({ will cause error
...mapState({
lv main.js [2017-2-21 11:29:01] INFO processing target: /Users/Mario/Work/Projects/maserati/src/main.js [2017-2-21 11:29:01] ERROR Line 143: Unexpected token ...
The text was updated successfully, but these errors were encountered:
@KingMario 这看起来不是一个合法的代码片段。能运行?
Sorry, something went wrong.
@Jianru-Lin 这是 ES6 stage-3 的对象展开运算符 https://github.com/sebmarkbage/ecmascript-rest-spread,可以通过 babel 转译
@KingMario 好的,我研究下
No branches or pull requests
The statement
...mapState({
will cause errorThe text was updated successfully, but these errors were encountered: