瀏覽代碼

fix: log page error

1808837298@qq.com 2 年之前
父節點
當前提交
f3c240d600
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 (