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

is:issue is:open vue中通过axios.get('url')访问API接口,调不到,求解啊 #30

Open
ghost opened this issue May 14, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented May 14, 2018

return request({
url: '/admin/base/login',
method: 'post',
data
})
VUE中的这种就没问题。
通过await axios.get('http://localhost:80/admin/base/login').then(response => {
访问API接口,调不到,求解啊

@simplenjoy
Copy link

不能用GET,PHP路由规定了只能用POST

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

1 participant