fix
Helius
2022-07-07 08e5cfa5651c15a79bcbcff2b04a1dda6c5c961b
src/main/java/com/xcong/farmer/cms/core/node/AttrNode.java
@@ -71,6 +71,16 @@
        return false;
    }
    public void staticPath() {
        // 设置img的链接访问
        if ("img".equals(this.element.tagName())) {
            String src = this.element.attr("src");
            if (StrUtil.isNotBlank(STATIC_URL)) {
                this.element.attr("src", STATIC_URL + src);
            }
        }
    }
    public void parser() {
        // 判断是否为最小节点,如果是且没有特殊标签,则跳过清空
        if (!isNeedEmpty()) {
@@ -79,13 +89,7 @@
        this.element.empty();
        // 设置img的链接访问
        if ("img".equals(this.element.tagName())) {
            String src = this.element.attr("src");
            if (StrUtil.isNotBlank(STATIC_URL)) {
                this.element.attr("src", STATIC_URL + src);
            }
        }
        staticPath();
        Attributes attributes = this.element.attributes();
        if (attributes.isEmpty()) {
            return;