From 15ccd5db5bb418918c08d4e43edc7488e5c17955 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 29 Oct 2021 15:07:06 +0800 Subject: [PATCH] fix: update --- src/layout/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index 2b0b14256..7758453d3 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -88,7 +88,10 @@ const handleClickOutside = (params: boolean) => { function setTheme(layoutModel: string) { window.document.body.setAttribute("layout", layoutModel); - instance.$storage.layout = { layout: `${layoutModel}` }; + instance.$storage.layout = { + layout: `${layoutModel}`, + theme: instance.$storage.layout?.theme + }; } // 监听容器