-
Notifications
You must be signed in to change notification settings - Fork 1
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
本项目如何处理前台登录问题 #4
Comments
@weiweidong1993 $api方法是挂载在Vue.prototype上的,你可以采用Vue.prototype.$api的方式调用 |
大佬,关于前台登录,api-creator有什么好的实现方案吗... |
@fengjunzixian 这个库只是一个封装了axios的http请求工具,前台登录的实现要视不同业务而定啊 |
恩恩,请继续保持更新,我和我的小伙伴一直默默支持你 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
公司前台项目用的是大佬你的api-creator 后台用的是 vue-admin-element
![image](https://user-images.githubusercontent.com/53823346/69237114-e1a45300-0bcf-11ea-962e-c9e1c9c3d5e5.png)
最近在做登录这一块 然后调用接口的时候vue-admin-element用的是如下方式:
在这个方法里面套用 this.$api(...)直接报错了:this.$api is not a function
请问有什么好的处理方法吗?
The text was updated successfully, but these errors were encountered: