Explorar o código

fix: log page error

1808837298@qq.com hai 1 ano
pai
achega
f07ae8139b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      web/src/components/LogsTable.js

+ 3 - 0
web/src/components/LogsTable.js

@@ -325,6 +325,9 @@ const LogsTable = () => {
       title: '详情',
       dataIndex: 'content',
       render: (text, record, index) => {
+        if (record.other === '') {
+          record.other = '{}'
+        }
         let other = JSON.parse(record.other);
         if (other == null) {
           return (