chore: 优化

This commit is contained in:
xiaojunnuo
2025-03-10 16:51:59 +08:00
parent 0f5b9564c6
commit 11d1f6e141
3 changed files with 25 additions and 9 deletions
@@ -40,5 +40,8 @@ export default {
return str.length > length ? str.slice(0, length) + "..." : str;
}
return "";
},
transformLink(desc: string = "") {
return desc.replace(/\[(.*)\]\((.*)\)/g, '<a href="$2" target="_blank">$1</a>');
}
};