Moon-Future / ktv-system

ktv收银、会员系统

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

本地启动报错

MrKingHH opened this issue · comments

Proxy error: Could not proxy request /user/login from localhost:8080 to http://127.0.0.1:8889.
image
楼主能抽空看下是什么原因吗?

image
数据库配置已修改。

Proxy error: Could not proxy request /user/login from localhost:8080 to http://127.0.0.1:8889.
image
楼主能抽空看下是什么原因吗?

这看着是没启动后端吧?我重新clone试了下,不启动后端会报这个错

后端怎么启动呢?我没用Node.js做过后端。—_—

...进入sevrv文件夹,node index.js 启动,可能会报错,没有 secret.js 文件,要创建一下

OK,我现在可以跑起来了。这个地方的code != rootCode[type]为什么写两遍?
image

你这个注册功能有个Bug,填写验证码的地方,前端没有获取到数据,一直提醒请输入验证码。
Longin.vue中的formData: { account: '', password: '', rePassword: '', name: '', code: '' },增加一个code:''就可以了。

嗯,code 忘加了,rootCode[type] 写重了😅