docs: 优化 request 文档

This commit is contained in:
winixt 2024-01-18 19:13:33 +08:00
parent 2bb535a667
commit 03fba1af2a

View File

@ -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);
}