【fix ESLint】components/jero、components/layouts、components/tools、utils、views/account/center、views/demo、views/system

This commit is contained in:
zhaoxiao
2023-03-08 15:20:31 +08:00
parent e37d7c0c4e
commit 5bad1fef61
36 changed files with 98 additions and 70 deletions
@@ -99,7 +99,7 @@ export function getEnhancedMixins (type, name) {
if (enhanced) {
Object.keys(defEnhanced).forEach(key => {
const def = defEnhanced[key]
if (enhanced.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(enhanced, key)) {
// 方法如果存在就不覆盖
if (typeof def !== 'function' && typeof def !== 'string') {
enhanced[key] = Object.assign({}, def, enhanced[key])