From 8cf837591185cda89bf165d00be6e1796d4f3d31 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 19 Mar 2024 22:40:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=95=9C=E5=83=8F=E6=8B=89=E5=8F=96?= =?UTF-8?q?=E6=97=A5=E5=BF=97=20Unicode=20=E8=BD=AC=E4=B9=89=20(#4239)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/log-file/index.vue | 3 +++ frontend/src/views/container/container/index.vue | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/log-file/index.vue b/frontend/src/components/log-file/index.vue index 0fa5077c8..53529d5e1 100644 --- a/frontend/src/components/log-file/index.vue +++ b/frontend/src/components/log-file/index.vue @@ -162,6 +162,9 @@ const getContent = () => { if (!end.value && res.data.end) { lastContent.value = content.value; } + res.data.content = res.data.content.replace(/\\u(\w{4})/g, function (match, grp) { + return String.fromCharCode(parseInt(grp, 16)); + }); data.value = res.data; if (res.data.content != '') { if (stopSignals.some((signal) => res.data.content.endsWith(signal))) { diff --git a/frontend/src/views/container/container/index.vue b/frontend/src/views/container/container/index.vue index ff6de2007..84db1e6d9 100644 --- a/frontend/src/views/container/container/index.vue +++ b/frontend/src/views/container/container/index.vue @@ -110,7 +110,12 @@ - +