From 33cbb252344fd08cb10d16b350225d6fb28d7844 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 23 Feb 2023 14:59:56 +0800 Subject: [PATCH] fix -- bug --- src/views/roadmap/LearnPath.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/roadmap/LearnPath.vue b/src/views/roadmap/LearnPath.vue index 9381269..c4fa330 100644 --- a/src/views/roadmap/LearnPath.vue +++ b/src/views/roadmap/LearnPath.vue @@ -122,7 +122,7 @@ label="状态" > @@ -185,6 +185,16 @@ const returnfun = () => { showmapdetail.value = false; }; +function formatStatus(process) { + if (!process) { + return 0; + } + if (parseInt(process) === 1) { + return 2; + } + return 1; +} + async function gofun(e) { detail.value = e; showmapdetail.value = true;