fix topology

This commit is contained in:
Qiuxia Fan 2022-03-25 15:39:15 +08:00
parent 4b2f17f01c
commit 6ab1cfc1ef

View File

@ -30,7 +30,6 @@ limitations under the License. -->
class="inputs" class="inputs"
:value="depth" :value="depth"
:options="DepthList" :options="DepthList"
placeholder="Select a option"
@change="changeDepth" @change="changeDepth"
/> />
</span> </span>
@ -377,10 +376,12 @@ async function handleInspect() {
topologyStore.setNode(null); topologyStore.setNode(null);
topologyStore.setLink(null); topologyStore.setLink(null);
loading.value = true; loading.value = true;
const resp = await topologyStore.getServicesTopology([id]); const resp = await topologyStore.getDepthServiceTopology(
[id],
Number(depth.value)
);
loading.value = false; loading.value = false;
if (resp && resp.errors) {
if (resp.errors) {
ElMessage.error(resp.errors); ElMessage.error(resp.errors);
} }
await init(); await init();
@ -566,7 +567,7 @@ watch(
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
text-align: left; text-align: left;
padding-left: 15px; padding: 0 15px;
} }
span:hover { span:hover {