mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-24 02:46:37 +08:00
fix: 非root日志展开bug
(cherry picked from commit 23121a3caf74be60f178bfd5f898a77de02b6d35)
This commit is contained in:
parent
8fc49f98d2
commit
34998f7939
@ -516,7 +516,7 @@ const LogsTable = () => {
|
|||||||
let expandDatesLocal = {};
|
let expandDatesLocal = {};
|
||||||
for (let i = 0; i < logs.length; i++) {
|
for (let i = 0; i < logs.length; i++) {
|
||||||
logs[i].timestamp2string = timestamp2string(logs[i].created_at);
|
logs[i].timestamp2string = timestamp2string(logs[i].created_at);
|
||||||
logs[i].key = '' + logs[i].id;
|
logs[i].key = i;
|
||||||
let other = getLogOther(logs[i].other);
|
let other = getLogOther(logs[i].other);
|
||||||
let expandDataLocal = [];
|
let expandDataLocal = [];
|
||||||
if (isAdmin()) {
|
if (isAdmin()) {
|
||||||
@ -771,6 +771,7 @@ const LogsTable = () => {
|
|||||||
style={{ marginTop: 5 }}
|
style={{ marginTop: 5 }}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
expandedRowRender={expandRowRender}
|
expandedRowRender={expandRowRender}
|
||||||
|
expandRowByClick={true}
|
||||||
dataSource={logs}
|
dataSource={logs}
|
||||||
rowKey="key"
|
rowKey="key"
|
||||||
pagination={{
|
pagination={{
|
||||||
|
Loading…
Reference in New Issue
Block a user