qianzhaoy / vant--mobile-mall

基于有赞 vant 组件库的移动商城

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问一下为什么会报这个错,json-server也全局安装了

ljxyaly opened this issue · comments

Request failed with status code 500

Could not proxy request /home?shop_id=&per-page=8&page=1 from localhost:8080 to http://127.0.0.1:3000.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

//全局安装 json-server
npm install -g json-server
//启动mock后台服务
npm run mock
//启动网页服务
npm run serve

一定要按这个顺序执行