From 7f102ad8379c0bebecdce747fa769af9c4df5062 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 9 Oct 2024 14:11:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=AF=E5=8A=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/LineLayout.vue | 1 + src/pages/TestManage.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/layouts/LineLayout.vue b/src/layouts/LineLayout.vue index b739b89..4a3fe68 100644 --- a/src/layouts/LineLayout.vue +++ b/src/layouts/LineLayout.vue @@ -175,6 +175,7 @@ let scene: null | IGraphicScene = null; onMounted(async () => { const dom = document.getElementById('line-app-container'); + $q.loading.hide(); if (dom && defaultMapId && simulationId) { lineStore.setMapId(+defaultMapId); lineStore.setSimulationId(simulationId); diff --git a/src/pages/TestManage.vue b/src/pages/TestManage.vue index 99f2718..f9ddd93 100644 --- a/src/pages/TestManage.vue +++ b/src/pages/TestManage.vue @@ -225,6 +225,9 @@ function onCreate() { myForm.value?.validate().then(async (res) => { if (res) { if (operateDisabled.value) return; + $q.loading.show({ + delay: 400, // ms + }); await startSimulationByProject(+createInfo.id, +createInfo.runConfigId); } }); @@ -336,6 +339,7 @@ function joinTest(val: SimulationItem) { projectId: val.projectId, }; router.push({ path: '/linemap', query }); + // $q.loading.hide(); } function endTest(val: SimulationItem) { operateDisabled.value = true;