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

api的接口,只能用api.XXXX的方法调用吗 #47

Open
zhiwx opened this issue Dec 7, 2020 · 1 comment
Open

api的接口,只能用api.XXXX的方法调用吗 #47

zhiwx opened this issue Dec 7, 2020 · 1 comment

Comments

@zhiwx
Copy link

zhiwx commented Dec 7, 2020

比如
const res = await this.$api.GET_MENU_DATA();
const res = await this.$api.SYS_USER_LOGIN();

这样,如果项目大一点,接口的方法只能再$api下面,变为
const res = await this.$api.demo.GET_MENU_DATA();
const res = await this.$api.user.SYS_USER_LOGIN();
吗,
我是小白,不是刚刚接触这个框架

@beijin1949
Copy link

你可以尝试修改正则代码来匹配

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

2 participants