From d7cd7a2ad177f6ae65fcc8c05eb1d6a419708df0 Mon Sep 17 00:00:00 2001 From: justvideoconverter Date: Sun, 1 Oct 2023 17:14:05 -0700 Subject: [PATCH] Update index.tsx Fix the control on article status --- src/views/article/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/article/index.tsx b/src/views/article/index.tsx index 54b9594..8fa8e45 100644 --- a/src/views/article/index.tsx +++ b/src/views/article/index.tsx @@ -288,7 +288,7 @@ const Article: FC = props => { // 如果 status 为 1 那么 status 为 warning status={status === 1 ? "" : "error"} value={status.toString()} - options={PushStatusList} + options={[{value: 1, label: 'Published'}, {value: 2, label: 'InReview'}]} onChange={(value) => handleStatusChange(articleId, Number(value))} > ;