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

登陆界面 Request failed with status code 405 #2859

Closed
zgx950813 opened this issue Dec 18, 2019 · 8 comments
Closed

登陆界面 Request failed with status code 405 #2859

zgx950813 opened this issue Dec 18, 2019 · 8 comments

Comments

@zgx950813
Copy link

zgx950813 commented Dec 18, 2019

npm run dev后到登陆界面后,点击登陆出现Request failed with status code 405
微信截图_20191219004104

@wgliyuli
Copy link

同问

1 similar comment
@woo123123
Copy link

同问

@fengjiegithub
Copy link

启用纯前端 Mock
现在在mock/index.js也封装了一个纯前端 mock 的方法,你只需要在src/main.js中:

import { mockXHR } from '../mock'
mockXHR()
这样就会变成纯前端 mock 数据了和v4.0版本之前的 mock 方案是一样的,原理见上文。目前你看到的线上demo就是采用该种方式。

@zgx950813
Copy link
Author

启用纯前端 Mock
现在在mock/index.js也封装了一个纯前端 mock 的方法,你只需要在src/main.js中:

import { mockXHR } from '../mock'
mockXHR()
这样就会变成纯前端 mock 数据了和v4.0版本之前的 mock 方案是一样的,原理见上文。目前你看到的线上demo就是采用该种方式。

多谢!!!

@WangXinYu-China
Copy link

启用纯前端 Mock
现在在mock/index.js也封装了一个纯前端 mock 的方法,你只需要在src/main.js中:

import { mockXHR } from '../mock'
mockXHR()
这样就会变成纯前端 mock 数据了和v4.0版本之前的 mock 方案是一样的,原理见上文。目前你看到的线上demo就是采用该种方式。

多谢大佬管用

@yuwenyes
Copy link

yuwenyes commented Jan 4, 2020

注释了这个判断就可以了:if (process.env.NODE_ENV === 'production') {
“在main.js中,在下面这处把production改为development” 这个改法不可以---不知道为什么

@PanJiaChen
Copy link
Owner

#2929

重新拉取最新代码已修复。

@JaneChelle
Copy link

用的 后端接口 ,没用到 mock,根本没有这段代码,求解

EdwinBetanc0urt pushed a commit to EdwinBetanc0urt/adempiere-vue that referenced this issue Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants