Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST http://localhost:9999/users/userInfo 404 (Not Found) #16

Open
zhimazz opened this issue Apr 10, 2018 · 6 comments
Open

POST http://localhost:9999/users/userInfo 404 (Not Found) #16

zhimazz opened this issue Apr 10, 2018 · 6 comments
Labels
项目更新 项目更新出现的问题

Comments

@zhimazz
Copy link

zhimazz commented Apr 10, 2018

昨天运行还可以,今天就404了,是服务器问题吗?我没改过代码,拿你的代码参考而已。

代理也还是原来的配置
proxyTable: { '/users/*': { // target: 'http://127.0.0.1:3333' // 请求本地 需要clone node-api项目 target: 'http://mall.yucccc.com:3333' // 请求线上 可直接运行 }, '/goods/*': { // target: 'http://127.0.0.1:3333' target: 'http://mall.yucccc.com:3333' }, },

@yucccc
Copy link
Owner

yucccc commented Apr 10, 2018

@zhimazz 嗯嗯 我昨晚修改了接口 接口统一以api开头 你本地的需要改下

@yucccc yucccc added the 项目更新 项目更新出现的问题 label Apr 10, 2018
@zhimazz
Copy link
Author

zhimazz commented Apr 11, 2018

可以了,没留意到你更新了

@helongliang
Copy link

本地要改成什么样,可以给个例子吗,不是很懂

@augusttty
Copy link

同问,本地怎么改...

@zhimazz
Copy link
Author

zhimazz commented May 18, 2018

比较久远,我尽量回忆下
前端项目config->index里面proxyTable: {
'/api/': {
// target: 'http://127.0.0.1:3333' // 请求本地 需要clone node-api项目
target: 'http://mall.yucccc.com', // 请求线上 可直接运行
changeOrigin: true
}
},
还有src->api里面的3个js,你们更新作者的呗,都改了请求路径

@helongliang
Copy link

线上打不开了,请问clone node-api,怎么操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
项目更新 项目更新出现的问题
Projects
None yet
Development

No branches or pull requests

4 participants