diff --git a/src/logics/error-handle/index.ts b/src/logics/error-handle/index.ts index e04c00980..a18c64443 100644 --- a/src/logics/error-handle/index.ts +++ b/src/logics/error-handle/index.ts @@ -62,16 +62,15 @@ function formatComponentName(vm: any) { /** * Configure Vue error handling function */ - -function vueErrorHandler(err: Error, vm: any, info: string) { +function vueErrorHandler(err: unknown, vm: any, info: string) { const errorLogStore = useErrorLogStoreWithOut(); const { name, path } = formatComponentName(vm); errorLogStore.addErrorLogInfo({ type: ErrorTypeEnum.VUE, name, file: path, - message: err.message, - stack: processStackMsg(err), + message: (err as Error).message, + stack: processStackMsg(err as Error), detail: info, url: window.location.href, });