diff --git a/packages/api/src/proxy.ts b/packages/api/src/proxy.ts index 381b1c2b3..f04a8fe0e 100644 --- a/packages/api/src/proxy.ts +++ b/packages/api/src/proxy.ts @@ -36,7 +36,7 @@ export class ApiProxy = DevtoolsPluginApi } } const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}` - let currentSettings = { ...defaultSettings } + let currentSettings = Object.assign({}, defaultSettings) try { const raw = localStorage.getItem(localSettingsSaveId) const data = JSON.parse(raw)