From 4060da1afb9c0f10c1390b4ccbae8770bd2a8e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Mon, 15 Jul 2024 21:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/calculate/edit.vue | 4 ++-- src/views/manage/otherTool/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/manage/calculate/edit.vue b/src/views/manage/calculate/edit.vue index 47f423b..b66a6f2 100644 --- a/src/views/manage/calculate/edit.vue +++ b/src/views/manage/calculate/edit.vue @@ -192,8 +192,8 @@ function handleFileChange(file) { let jsonStr = JSON.stringify(res); formData.parameters = jsonStr; formRef.value.validateField("parameters"); - let json = JSON.parse(jsonStr); - codeHtml.value = highlightJSON(json); + //let json = JSON.parse(jsonStr); + codeHtml.value = res;//highlightJSON(json); fileStatus.value = true; } }); diff --git a/src/views/manage/otherTool/index.vue b/src/views/manage/otherTool/index.vue index 540685a..60ff0dc 100644 --- a/src/views/manage/otherTool/index.vue +++ b/src/views/manage/otherTool/index.vue @@ -157,7 +157,7 @@ function handleDetail(row: { [key: string]: any }) { /** 新增第三方工具链 */ function handleAdd() { - router.push({ path: "/tester/otherToolEdit" }); + router.push({ path: "/tester/otherToolAdd" }); } onMounted(() => {