From 0514c58b6300a662c343c34b4e8cbb9f9479e46d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 11 Aug 2025 15:39:02 +0800 Subject: [PATCH] =?UTF-8?q?style::=20=E7=B3=BB=E7=BB=9F=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AF=A6=E6=83=85json=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/log/operate/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/system/log/operate/index.vue b/src/views/system/log/operate/index.vue index 42152083..e8abc665 100644 --- a/src/views/system/log/operate/index.vue +++ b/src/views/system/log/operate/index.vue @@ -245,6 +245,21 @@ let modalState: ModalStateType = reactive({ */ function fnModalVisibleByVive(row: Record) { modalState.from = Object.assign(modalState.from, row); + try { + modalState.from.operaParam = JSON.stringify( + JSON.parse(modalState.from.operaParam), + null, + 4 + ); + } catch (_) {} + try { + modalState.from.operaMsg = JSON.stringify( + JSON.parse(modalState.from.operaMsg), + null, + 4 + ); + } catch (_) {} + modalState.title = t('views.system.log.operate.logInfo'); modalState.openByView = true; }