Skip to content

Commit

Permalink
fix: 1.5.7不设置inject引发的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
missannil committed Jan 5, 2024
1 parent 63515a1 commit ff04ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/DefineComponent/collectOptionsForComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export function collectOptionsForComponent(
const rootComponentOption = defineComponentOption.rootComponent;
const subComponentsList = defineComponentOption.subComponents;

const finalOptionsForComponent: FinalOptionsOfComponent = merge(deepClone(instanceConfig.injectInfo)!, {
const finalOptionsForComponent: FinalOptionsOfComponent = merge({ ...deepClone(instanceConfig.injectInfo) }, {
observers: {},
data: {},
methods: {},
Expand Down

0 comments on commit ff04ae2

Please sign in to comment.