Skip to content

Commit f1527b0

Browse files
committed
🐛 修复列表排序问题
1 parent 1f29bfc commit f1527b0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pages/options/routes/ScriptList.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function ScriptList() {
130130
{
131131
title: t("enable"),
132132
width: 100,
133-
key: "enable",
133+
dataIndex: "status",
134134
sorter(a, b) {
135135
return a.status - b.status;
136136
},
@@ -243,9 +243,7 @@ function ScriptList() {
243243
},
244244
{
245245
title: t("apply_to_run_status"),
246-
dataIndex: "status",
247246
width: 140,
248-
key: "status",
249247
render(col, item: Script) {
250248
const toLogger = () => {
251249
navigate({
@@ -382,10 +380,8 @@ function ScriptList() {
382380
},
383381
{
384382
title: t("sorting"),
385-
dataIndex: "sort",
386383
key: "id",
387384
width: 80,
388-
sorter: (a, b) => a.sort - b.sort,
389385
align: "center",
390386
render() {
391387
return (

0 commit comments

Comments
 (0)