Przeglądaj źródła

fix: log page error

1808837298@qq.com 1 rok temu
rodzic
commit
f07ae8139b
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      web/src/components/LogsTable.js

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

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