We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// response数据解构 client.addResponseInterceptor({ fulfilled: (response) => { const { data: responseData, status } = response;
const { code, data } = responseData; if (status >= 200 && status < 400 && code === 0) { return data; } throw Object.assign({}, response, { response }); },
}); 新代码中已换掉
换成最新的代码 // 处理返回的响应数据格式 client.addResponseInterceptor( defaultResponseInterceptor({ codeField: 'code', dataField: 'data', successCode: 0, }), );
No response
The text was updated successfully, but these errors were encountered:
角色 指令方式 指令支持绑定单个或多个权限码。单个时可以直接传入字符串或数组中包含一个权限码,多个权限码则传入数组。
其中的“权限码”,应改为“角色”
Sorry, something went wrong.
No branches or pull requests
Documentation is
Explain in Detail
// response数据解构
client.addResponseInterceptor({
fulfilled: (response) => {
const { data: responseData, status } = response;
}); 新代码中已换掉
Your Suggestion for Changes
换成最新的代码 // 处理返回的响应数据格式
client.addResponseInterceptor(
defaultResponseInterceptor({
codeField: 'code',
dataField: 'data',
successCode: 0,
}),
);
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: