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; }