fix(接口测试): 修复新建扩展协议的api再新建用例报错的缺陷
--bug=1040367 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040367
This commit is contained in:
parent
6421d1ebf0
commit
22e2ea7fe0
|
@ -204,10 +204,10 @@
|
|||
query: apiDetailInfo.value.query ?? apiDetailInfo.value.request.query,
|
||||
authConfig: apiDetailInfo.value.authConfig ?? apiDetailInfo.value.request.authConfig,
|
||||
otherConfig: apiDetailInfo.value.otherConfig ?? apiDetailInfo.value.request.otherConfig,
|
||||
url: apiDetailInfo.value.url ?? apiDetailInfo.value.request.url,
|
||||
}
|
||||
: {}),
|
||||
children: apiDetailInfo.value.children ?? apiDetailInfo.value.request.children,
|
||||
url: apiDetailInfo.value.url ?? apiDetailInfo.value.request.url,
|
||||
};
|
||||
// 复制
|
||||
if (isCopy) {
|
||||
|
|
|
@ -40,10 +40,16 @@
|
|||
hasAnyPermission(['PROJECT_API_DEFINITION:READ+IMPORT'])
|
||||
"
|
||||
type="primary"
|
||||
@click="handleSelect('import')"
|
||||
>
|
||||
{{ t('apiTestManagement.importApi') }}
|
||||
</a-button>
|
||||
<a-button v-else v-permission="['PROJECT_API_DEFINITION:READ+ADD']" type="primary">
|
||||
<a-button
|
||||
v-else
|
||||
v-permission="['PROJECT_API_DEFINITION:READ+ADD']"
|
||||
type="primary"
|
||||
@click="handleSelect('newApi')"
|
||||
>
|
||||
{{ t('apiTestManagement.newApi') }}
|
||||
</a-button>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue