fix(projects): 修复登录页刷新跳404

This commit is contained in:
Soybean
2021-10-20 16:38:43 +08:00
parent 3edf46eb52
commit 358d4e8a19
15 changed files with 54 additions and 51 deletions

View File

@ -3,7 +3,7 @@ import type { GlobalThemeOverrides } from 'naive-ui';
import { themeSettings, defaultThemeSettings } from '@/settings';
import { store } from '@/store';
import type { ThemeSettings, NavMode, MultiTabMode, AnimateType, HorizontalMenuPosition } from '@/interface';
import { shallowColor } from '@/utils';
import { addColorAlpha } from '@/utils';
import { getHoverAndPressedColor } from './helpers';
type ThemeState = ThemeSettings;
@ -64,7 +64,7 @@ const themeStore = defineStore({
};
},
relativeThemeColor(): relativeThemeColor {
const shallow = shallowColor(this.themeColor, 0.1);
const shallow = addColorAlpha(this.themeColor, 0.1);
return {
...getHoverAndPressedColor(this.themeColor),
shallow