fix: logMaxRows value

This commit is contained in:
kunish 2023-09-14 18:33:27 +08:00
parent b66dd8902d
commit b3c924e33b
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
2 changed files with 4 additions and 10 deletions

View File

@ -162,4 +162,4 @@ export enum LOG_LEVEL {
Silent = 'silent', Silent = 'silent',
} }
export const LOGS_TABLE_MAX_ROWS_LIST = [200, 300, 500, 800, 1000] export const LOGS_TABLE_MAX_ROWS_LIST = [200, 300, 500, 800, 1000]

View File

@ -437,17 +437,11 @@ const ConfigForXd = () => {
<select <select
class="select select-bordered w-full max-w-xs" class="select select-bordered w-full max-w-xs"
value={rows} value={logMaxRows()}
onChange={(e) => { onChange={(e) => setLogMaxRows(parseInt(e.target.value))}
setLogMaxRows(parseInt(e.target.value))
}}
> >
<For each={LOGS_TABLE_MAX_ROWS_LIST}> <For each={LOGS_TABLE_MAX_ROWS_LIST}>
{(rows) => ( {(rows) => <option value={rows}>{rows}</option>}
<option value={rows}>
{rows}
</option>
)}
</For> </For>
</select> </select>
</div> </div>