fix(接口测试): 修改文档分享协议为空警告

This commit is contained in:
xinxin.wu 2024-10-18 15:34:52 +08:00 committed by Craftsman
parent f05e536cb3
commit d05ee1ef71
1 changed files with 2 additions and 3 deletions

View File

@ -68,7 +68,6 @@
import { ProtocolItem } from '@/models/apiTest/common';
import { ModuleTreeNode } from '@/models/common';
import {
ProtocolKeyEnum,
RequestAuthType,
RequestComposition,
RequestDefinitionStatus,
@ -95,14 +94,13 @@
(e: 'exportShare', all: boolean): void;
}>();
const localProtocol = localStorage.getItem(ProtocolKeyEnum.API_NEW_PROTOCOL);
const initDefaultId = `definition-${Date.now()}`;
const defaultDefinitionParams: RequestParam = {
type: 'api',
definitionActiveKey: 'definition',
id: initDefaultId,
moduleId: '',
protocol: localProtocol || 'HTTP',
protocol: 'HTTP',
tags: [],
status: RequestDefinitionStatus.PROCESSING,
description: '',
@ -226,6 +224,7 @@
() => props.apiInfo,
(val) => {
if (val) {
activeApiDetail.value.protocol = val.attachInfo.protocol;
initDetail();
}
},