Skip to content

Let's use AI to Earn!

fix: 反馈改为上传最近三天的日志

gaoSir6ff0c17253e8
diff --git a/src/layout/UpdateLog/index.tsx b/src/layout/UpdateLog/index.tsx
index d6c91b45..799e9bfa 100644
--- a/src/layout/UpdateLog/index.tsx
+++ b/src/layout/UpdateLog/index.tsx
@@ -33,7 +33,9 @@ const Updatelog = memo(
onOk={async () => {
await form.validateFields();
setLoading(true);
- const filelogs = await ipcGetLogFlies();
+ let filelogs = await ipcGetLogFlies();
+ // 只需要最近三天的日志日志
+ filelogs = filelogs.slice(-3);
let fileList: string[] = [];
for (const filelog of filelogs) {
const buffer = await icpGetFileStream(filelog);
diff --git a/src/views/account/components/AccountSidebar/AccountSidebar.module.scss b/src/views/account/components/AccountSidebar/AccountSidebar.module.scss
index 5f096679..096c1d19 100644
--- a/src/views/account/components/AccountSidebar/AccountSidebar.module.scss
+++ b/src/views/account/components/AccountSidebar/AccountSidebar.module.scss
@@ -188,7 +188,6 @@
.ant-table-cell {
padding: 10px !important;
- //height: 20px !important;
}
.userManage-sidebar {