uex2中使用mapMutations/mapActions報錯解決方法 BabelLoaderError: SyntaxError: Unexpected token

1.問題 在嚐鮮vuex2時,發現vuex2增長了 mapGetters 和 mapActions 的方法,藉助stage2的 Object Rest Operator 特性,能夠寫出下面代碼:vue computed: { ...mapGetters([ 'userId' ]) }, 可是在藉助babel編譯轉換時發生了報錯: BabelLoade
相關文章
相關標籤/搜索