chore: plus

This commit is contained in:
xiaojunnuo
2024-08-21 08:36:03 +08:00
parent db9d27468e
commit ab7a1673ff
5 changed files with 34 additions and 12 deletions
@@ -0,0 +1,13 @@
import { utils } from '@certd/pipeline';
export async function request(config: any) {
try {
return await utils.http(config);
} catch (e) {
const data = e.data || e.response?.data;
if (data) {
throw new Error(data.message || data.msg || data.error || data);
}
throw e;
}
}