Skip to content

Commit

Permalink
docs: 优化 request 文档
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Jan 18, 2024
1 parent 2bb535a commit 03fba1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/plugin/plugins/request.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export default defineRuntimeConfig({
// 处理响应内容异常
if (data.code !== '0') {
if (data.code === '10000')
FMesseage.error('hello world');
FMessage.error('hello world');

if (data.code === '20000')
FMesseage.error('hello world');
FMessage.error('hello world');

throw new Error(response);
}
Expand Down

0 comments on commit 03fba1a

Please sign in to comment.