build(projects): perf logo

This commit is contained in:
Soybean
2023-02-09 23:25:00 +08:00
parent 919376b77c
commit a8a6ed97b9
21 changed files with 875 additions and 777 deletions

View File

@ -18,6 +18,7 @@
<script setup lang="ts">
import { useAppInfo } from '@/composables';
import { localStg } from '@/utils';
import themeSettings from '@/settings/theme.json';
const { title } = useAppInfo();
@ -29,7 +30,7 @@ const lodingClasses = [
];
function addThemeColorCssVars() {
const defaultColor = '#1890ff';
const defaultColor = themeSettings.themeColor;
const themeColor = localStg.get('themeColor') || defaultColor;
const cssVars = `--primary-color: ${themeColor}`;
document.documentElement.style.cssText = cssVars;