fix(接口测试): 修复接口测试场景切换项目未清空已选择引用或复制
This commit is contained in:
parent
eed331d1a4
commit
b4a40f26a7
|
@ -223,12 +223,6 @@
|
|||
}
|
||||
);
|
||||
|
||||
function resetModule() {
|
||||
nextTick(() => {
|
||||
moduleTreeRef.value?.init(activeKey.value);
|
||||
});
|
||||
}
|
||||
|
||||
function handleModuleSelect(ids: (string | number)[], node: MsTreeNodeData) {
|
||||
activeModule.value = node;
|
||||
moduleIds.value = ids;
|
||||
|
@ -470,6 +464,7 @@
|
|||
|
||||
handleCancel();
|
||||
}
|
||||
|
||||
// 清空全部
|
||||
function clearSelected() {
|
||||
apiUseTreeSelection.clearSelector();
|
||||
|
@ -477,6 +472,12 @@
|
|||
scenarioUseTreeSelection.clearSelector();
|
||||
}
|
||||
|
||||
function resetModule() {
|
||||
clearSelected();
|
||||
nextTick(() => {
|
||||
moduleTreeRef.value?.init(activeKey.value);
|
||||
});
|
||||
}
|
||||
onBeforeMount(async () => {
|
||||
await initProtocolList();
|
||||
const localProtocol = getLocalStorage<string>(ProtocolKeyEnum.API_SCENARIO_IMPORT_PROTOCOL);
|
||||
|
|
Loading…
Reference in New Issue