请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

为什么一直报错

Syntax Error: Unexpected token (161:10)

159 | },
160 | computed:{

161 | …mapState([‘nickName’,‘cartCount’])
| ^
162 | /*nickName(){
163 | return this.$store.state.nickName;
164 | },

@ ./src/components/NavHeader.vue 7:2-106
@ .//babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./src/views/GoodsList.vue
@ ./src/views/GoodsList.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js

Listening at http://localhost:8080

正在回答 回答被采纳积分+3

1回答

河畔一角 2019-05-05 22:23:47

先把上面的对象结构注释,把下面的放开,我稍后在本地运行检查一下。

0 回复 有任何疑惑可以回复我~
  • 提问者 Syntax_Error #1
    放开下面的会有新的错误
    Failed to load resource: the server responded with a status of 504 (Gateway Timeout)
    :8080/goods/list?page=1&pageSize=8&sort=1&priceLevel=all:1 Failed to load resource: the server responded with a status of 504 (Gateway Timeout)
    2createError.js?f777:16 Uncaught (in promise) Error: Request failed with status code 504
        at createError (createError.js?f777:16)
        at settle (settle.js?199f:18)
        at XMLHttpRequest.handleLoad (xhr.js?14ed:77)
    [HPM] Error occurred while trying to proxy request /users/checkLogin from localhost:8080 to http://localhost:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
    [HPM] Error occurred while trying to proxy request /goods/list?page=1&pageSize=8&sort=1&priceLevel=all from localhost:8080 to http://localhost:3000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
    回复 有任何疑惑可以回复我~ 2019-05-06 14:06:07
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信