mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
chore(error-handle): 处理vue errorHandler绑定事件的参数类型不一致
This commit is contained in:
parent
e456f54ded
commit
cea297ce88
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user