<!-- eslint-disable vue/no-v-html -->
<button
v-html="txt"
></button>
<!--eslint-enable-->
添加注释即可
参考链接:
https://eslint.vuejs.org/rules/no-v-html.html
https://stackoverflow.com/questions/60842158/vuejs-v-html-data-binding-of-html-data-against-eslint-rule