使用Vuex出现的报错

Uncaught Error: Module build failed: SyntaxError: E:/vue/test3/src/components/user/account_imformation.vue: Unexpected token (94:4)


  92 |   },

  93 |   computed: {

> 94 |     ...mapGetters([

     |     ^

  95 |       'name',

  96 |       'avatar',

  97 |       'sex',



    at eval (278:1)

    at Object.<anonymous> (build.js:2513)

    at __webpack_require__ (build.js:660)

    at fn (build.js:86)

    at eval (account_imformation.vue?e184:8)

    at Object.<anonymous> (build.js:4793)

    at __webpack_require__ (build.js:660)

    at fn (build.js:86)

    at eval (287:32)

    at Object.<anonymous> (build.js:2575)

这个报错是打包工具的问题吗?

至尊宝的传说
浏览 1317回答 2
2回答

杨__羊羊

缩进的问题?

慕斯709654

检查一下是否 import { mapGetters } from 'vuex'
打开App,查看更多内容
随时随地看视频慕课网APP