mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 03:05:07 +08:00
docs: 优化 request 文档
This commit is contained in:
parent
2bb535a667
commit
03fba1af2a
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user