d2-admin-start-kit icon indicating copy to clipboard operation
d2-admin-start-kit copied to clipboard

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

Open zhiwx opened this issue 4 years ago • 1 comments

比如 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(); 吗, 我是小白,不是刚刚接触这个框架

zhiwx avatar Dec 07 '20 06:12 zhiwx

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

beijin1949 avatar Jul 08 '22 13:07 beijin1949