feat: openapi cors

This commit is contained in:
archer
2023-05-19 12:01:59 +08:00
parent bb312441c6
commit 2843178ede
12 changed files with 71 additions and 209 deletions

View File

@@ -122,5 +122,7 @@ export const formatLinkText = (text: string) => {
};
export const getErrText = (err: any, def = '') => {
return typeof err === 'string' ? err : err?.message || def;
const msg = typeof err === 'string' ? err : err?.message || def || '';
msg && console.log('error =>', msg);
return msg;
};