修复错误

This commit is contained in:
unanmed 2023-06-21 15:43:22 +08:00
parent d36569e2d1
commit 6f59ea51ac

View File

@ -261,5 +261,7 @@ export function ensureArray<T>(arr: T): T extends any[] ? T : T[] {
}
export function pColor(color: string) {
return core.arrayToRGBA(parseColor(color));
const arr = parseColor(color);
arr[3] ??= 1;
return `rgba(${arr.join(',')})`;
}