style:: 系统操作日志详情json格式化显示

This commit is contained in:
TsMask
2025-08-11 15:39:02 +08:00
parent 6a558788c7
commit 0514c58b63

View File

@@ -245,6 +245,21 @@ let modalState: ModalStateType = reactive({
*/
function fnModalVisibleByVive(row: Record<string, string>) {
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;
}