mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 05:02:29 +08:00
🎨 tag 颜色
This commit is contained in:
parent
ff9cbb0a10
commit
7d34a87da4
@ -443,7 +443,7 @@ export class Background {
|
||||
if (tags) {
|
||||
let html = "";
|
||||
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, "")) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user