mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-05-29 20:07:20 +08:00
23 lines
544 B
JavaScript
23 lines
544 B
JavaScript
import { defineRuntimeConfig } from '@fesjs/fes';
|
|
|
|
export default defineRuntimeConfig({
|
|
request: {
|
|
errorHandler: {
|
|
111() {
|
|
console.log('root:111');
|
|
},
|
|
500() {
|
|
console.log('500 error');
|
|
},
|
|
default(error) {
|
|
console.log(error);
|
|
const msg = error?.data?.msg || error?.msg;
|
|
console.log(msg);
|
|
},
|
|
},
|
|
},
|
|
patchRoutes: () => {
|
|
console.log('patchRoutes');
|
|
},
|
|
});
|