mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 19:58:09 +08:00
refactor(utils): use built-in throwError function (#3916)
This commit is contained in:
parent
06fc7f4215
commit
fdfe38deb0
@ -14,7 +14,7 @@ import {
|
||||
} from '@vue/shared'
|
||||
import isEqualWith from 'lodash/isEqualWith'
|
||||
import isServer from './isServer'
|
||||
import { debugWarn } from './error'
|
||||
import { debugWarn, throwError } from './error'
|
||||
|
||||
import type { ComponentPublicInstance, CSSProperties, Ref } from 'vue'
|
||||
import type { TimeoutHandle, Nullable } from './types'
|
||||
@ -68,7 +68,7 @@ export function getPropByPath(
|
||||
tempObj = tempObj[key]
|
||||
} else {
|
||||
if (strict) {
|
||||
throw new Error('Please transfer a valid prop path to form item!')
|
||||
throwError(SCOPE, 'Please transfer a valid prop path to form item!')
|
||||
}
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user