Skip to content

求设置白名单示例,或者能否在config中添加参数 #16

Description

@531431988

request
.config({
loading: true,
loadingText: '加载中...',
key: 默认携带TOKEN,可配置不携带
})
.post('/user/save', {
user_id: 1
})
.then((res) => {
// 此处可自定义业务逻辑
})
.catch((err) => {
// 此处仅为演示
console.error('请求服务异常');
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions