mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 07:30:49 +08:00
🎨 tag 颜色
This commit is contained in:
parent
ff9cbb0a10
commit
7d34a87da4
@ -443,7 +443,7 @@ export class Background {
|
|||||||
if (tags) {
|
if (tags) {
|
||||||
let html = "";
|
let html = "";
|
||||||
const colors = ["secondary", "primary", "info", "success", "warning", "error", "pink"];
|
const colors = ["secondary", "primary", "info", "success", "warning", "error", "pink"];
|
||||||
new Set(tags.split(",").map(item => item.trim())).forEach((item, index) => {
|
Array.from(new Set(tags.split(",").map(item => item.trim()))).forEach((item, index) => {
|
||||||
if (!item.replace(/ /g, "")) {
|
if (!item.replace(/ /g, "")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user