fix: the brand color setting does not take effect (#4405)

This commit is contained in:
Vben
2024-09-14 21:35:12 +08:00
committed by GitHub
parent 38fe6426a2
commit c3d0102cda
14 changed files with 39 additions and 37 deletions

View File

@@ -14,6 +14,7 @@ function generatorColorVariables(colorItems: ColorItem[]) {
colorItems.forEach(({ alias, color, name }) => {
if (color) {
const colorsMap = getColors(new TinyColor(color).toHexString());
let mainColor = colorsMap['500'];
const colorKeys = Object.keys(colorsMap);

View File

@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { openWindow } from '../window'; // 假设你的函数在 'openWindow' 文件中
import { openWindow } from '../window';
describe('openWindow', () => {
// 保存原始的 window.open 函数