为什么一直报错

来源:16-6 npm插件发布

Syntax_Error

2019-05-05

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

写回答

1回答

河畔一角

2019-05-05

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

0
1
Syntax_Error
放开下面的会有新的错误 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
共1条回复

Vue2.6+Node.js+MongoDB 全栈打造商城系统

课程全面升级,Vue2.6+Koa2,从前端入门全栈,让你的未来更宽广

2634 学习 · 924 问题

查看课程