Vanessa 2024-12-18 01:08:58 +08:00
parent 053e03ed53
commit f0a7ffd1dc
2 changed files with 2 additions and 2 deletions

View file

@ -443,7 +443,7 @@ export class Background {
if (tags) {
let html = "";
const colors = ["secondary", "primary", "info", "success", "warning", "error", "pink"];
new Set(tags.split(",")).forEach((item, index) => {
new Set(tags.split(",").map(item => item.trim())).forEach((item, index) => {
if (!item.replace(/ /g, "")) {
return;
}