Skip to content

不能渲染svg? #45

Description

@RexHarris

image

template部分
<wxparser :rich-text="graphCodeImg" />

js部分
async getGraphValidationCode() { const res = await this.$api.common.getGraphCode(); this.graphCodeImg = res.data ? res.data.svg : ''; }
graphCodeImg为后端返回的字符串类型的svg元素

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions