From 358d4e8a1992aa040b909ae580470a0fd2142f5f Mon Sep 17 00:00:00 2001 From: Soybean <2570172956@qq.com> Date: Wed, 20 Oct 2021 16:38:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8D=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E5=88=B7=E6=96=B0=E8=B7=B3404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/LoginBg/index.vue | 16 ++++++++++++-- .../SystemLogo/components/SvgFillLogo.vue | 2 +- src/components/custom/ButtonTab/index.vue | 6 ++--- .../ChromeTab/components/SvgRadiusBg.vue | 4 ++-- src/hooks/common/useRouterChange.ts | 10 ++++----- .../components/GlobalHeader/index.vue | 4 +++- src/router/helpers/index.ts | 5 +---- src/router/routes/constant.ts | 6 ++--- src/store/modules/theme/index.ts | 4 ++-- src/utils/auth/index.ts | 2 +- src/utils/auth/user.ts | 7 ------ src/utils/common/color.ts | 22 +++++++------------ src/utils/common/index.ts | 2 +- src/utils/index.ts | 3 +-- src/views/system/login/index.vue | 12 +++++++--- 15 files changed, 54 insertions(+), 51 deletions(-) diff --git a/src/components/common/LoginBg/index.vue b/src/components/common/LoginBg/index.vue index 81a0c6c0..fac0b2e9 100644 --- a/src/components/common/LoginBg/index.vue +++ b/src/components/common/LoginBg/index.vue @@ -1,15 +1,27 @@ diff --git a/src/components/common/SystemLogo/components/SvgFillLogo.vue b/src/components/common/SystemLogo/components/SvgFillLogo.vue index 027d289b..21ea0f30 100644 --- a/src/components/common/SystemLogo/components/SvgFillLogo.vue +++ b/src/components/common/SystemLogo/components/SvgFillLogo.vue @@ -35,7 +35,7 @@ defineProps({ }, foreground: { type: String, - default: '#fefefe00' + default: '#fefefe' } }); diff --git a/src/components/custom/ButtonTab/index.vue b/src/components/custom/ButtonTab/index.vue index a806229c..91ab4625 100644 --- a/src/components/custom/ButtonTab/index.vue +++ b/src/components/custom/ButtonTab/index.vue @@ -29,7 +29,7 @@ import { computed } from 'vue'; import { useBoolean } from '@/hooks'; import { IconClose } from '@/components'; -import { shallowColor } from '@/utils'; +import { addColorAlpha } from '@/utils'; const props = defineProps({ isActive: { @@ -62,10 +62,10 @@ const buttonStyle = computed(() => { const style: { [key: string]: string } = {}; if (props.isActive || isHover.value) { style.color = props.primaryColor; - style.borderColor = shallowColor(props.primaryColor, 0.3); + style.borderColor = addColorAlpha(props.primaryColor, 0.3); if (props.isActive) { const alpha = props.darkMode ? 0.15 : 0.1; - style.backgroundColor = shallowColor(props.primaryColor, alpha); + style.backgroundColor = addColorAlpha(props.primaryColor, alpha); } } return style; diff --git a/src/components/custom/ChromeTab/components/SvgRadiusBg.vue b/src/components/custom/ChromeTab/components/SvgRadiusBg.vue index c022fa1e..d9ca7d59 100644 --- a/src/components/custom/ChromeTab/components/SvgRadiusBg.vue +++ b/src/components/custom/ChromeTab/components/SvgRadiusBg.vue @@ -30,7 +30,7 @@