根据接口请求参数校验接口返回
<h1>校验接口请求参数</h1>
<p>如,校验页面点击后,接口请求带有参数versionName和versionId,则通过如下方法实现:</p>
<pre><code class="language-javascript"> cy.intercept({
method: 'POST',
url: '/api/template/version/list?',
query: {
versionName: '1.0.0',
versionId: '*'
},
}).as("templateListPage");</code></pre>
<h1>参考</h1>
<p><a href="https://docs.cypress.io/api/commands/intercept#Matching-with-RouteMatcher">https://docs.cypress.io/api/commands/intercept#Matching-with-RouteMatcher</a></p>