chore: prefer using extend (#8531)

This commit is contained in:
neverland
2021-04-15 09:39:20 +08:00
committed by GitHub
parent dde06c43fe
commit 0a9f2102d1
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ function setDefaultOptions(type: ToastType | ToastOptions, options?: any) {
if (typeof type === 'string') {
defaultOptionsMap[type] = options;
} else {
Object.assign(currentOptions, type);
extend(currentOptions, type);
}
}