From 84ad5590bafc58e17ebcf7ebdce2cd70c0c22ea9 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 24 九月 2021 18:54:56 +0800 Subject: [PATCH] 日期时间新版 --- src/pages/vindicate/index/App.vue | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/vindicate/index/App.vue b/src/pages/vindicate/index/App.vue index a82f94f..eb915de 100644 --- a/src/pages/vindicate/index/App.vue +++ b/src/pages/vindicate/index/App.vue @@ -52,6 +52,12 @@ full: 0, }; }, + created() { + let color = localStorage.getItem('--colorCard') + if(color) { + document.documentElement.style.setProperty('--colorCard',`${color}`) + } + }, mounted() { const menu = getUrlKey("menu"); if (menu) { @@ -125,7 +131,7 @@ } .left-card-active { color: #fff; - background-color: #4E94FF; + background-color: var(--colorCard); .icon_black { visibility: hidden; } @@ -139,7 +145,7 @@ } .left-card:hover { - background-color: #4E94FF; + background-color: var(--colorCard); color: #fff; .iconfont { color: #333333; -- Gitblit v1.8.0