Skip to content

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

Description

@zhiwx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions