From 124bd0306f4849af86c5613856b86f400f784d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Thu, 30 Mar 2023 15:16:35 +0200 Subject: [PATCH 1/2] fix(vue3): prevent mixin leakage caused by inspection, fix #2037 --- packages/app-backend-vue3/src/components/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-backend-vue3/src/components/data.ts b/packages/app-backend-vue3/src/components/data.ts index 958f8b551..0aa152bd7 100644 --- a/packages/app-backend-vue3/src/components/data.ts +++ b/packages/app-backend-vue3/src/components/data.ts @@ -485,7 +485,7 @@ function mergeOptions ( if (!to[key]) { to[key] = from[key] } else { - Object.assign(to[key], from[key]) + to[key] = Object.assign({}, to[key], from[key]) } } } From a4a560293cf7b84bb75a7da7d3601129fb53bfbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 11 Apr 2023 16:56:29 +0200 Subject: [PATCH 2/2] Update packages/app-backend-vue3/src/components/data.ts Co-authored-by: Himself65 --- packages/app-backend-vue3/src/components/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-backend-vue3/src/components/data.ts b/packages/app-backend-vue3/src/components/data.ts index 0aa152bd7..30718c760 100644 --- a/packages/app-backend-vue3/src/components/data.ts +++ b/packages/app-backend-vue3/src/components/data.ts @@ -485,7 +485,7 @@ function mergeOptions ( if (!to[key]) { to[key] = from[key] } else { - to[key] = Object.assign({}, to[key], from[key]) + to[key] = Object.assign(Object.create(null), to[key], from[key]) } } }