MCPcopy Index your code
hub / github.com/YMFE/yapi / diffHTML

Method diffHTML

server/controllers/interface.js:788–799  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

786 }
787
788 diffHTML(html) {
789 if (html.length === 0) {
790 return `<span style="color: #555">没有改动,该操作未改动Api数据</span>`;
791 }
792
793 return html.map(item => {
794 return `<div>
795 <h4 class="title">${item.title}</h4>
796 <div>${item.content}</div>
797 </div>`;
798 });
799 }
800
801 /**
802 * 删除接口

Callers 1

upMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected