perf: 首屏优化,减少 1.5MB 资源

This commit is contained in:
xiaoxian521
2022-11-29 19:30:33 +08:00
parent a22bc8622e
commit d2b1bd5b44
17 changed files with 1842 additions and 4612 deletions

View File

@@ -42,7 +42,6 @@ const verticalRef = ref();
const horizontalRef = ref();
const {
body,
dataTheme,
layoutTheme,
themeColors,
@@ -165,8 +164,6 @@ function setFalse(Doms): any {
}
watch($storage, ({ layout }) => {
/* 设置wangeditorV5主题色 */
body.style.setProperty("--w-e-toolbar-active-color", layout["epThemeColor"]);
switch (layout["layout"]) {
case "vertical":
toggleClass(true, isSelect, unref(verticalRef));