mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
This commit is contained in:
parent
053e03ed53
commit
f0a7ffd1dc
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue