diff --git a/src/components/article/edit-modal.tsx b/src/components/article/edit-modal.tsx index 075b240..984c159 100644 --- a/src/components/article/edit-modal.tsx +++ b/src/components/article/edit-modal.tsx @@ -272,7 +272,7 @@ export default function ArticleEditModal(props: Props) {
{props.type == 'news' && props.id ? : null} - +
); diff --git a/src/i18n/translations/en-US.json b/src/i18n/translations/en-US.json index 401d115..0c8c6dc 100644 --- a/src/i18n/translations/en-US.json +++ b/src/i18n/translations/en-US.json @@ -15,8 +15,8 @@ "delete_failed": "Delete failed", "delete_success": "Delete success", "download": "Download", - "downloading": "Downloading...", "download_fail": "Download Failed", + "downloading": "Downloading...", "error_401": "You do not have permission to access this page", "error_403": "You do not have permission to access this page", "error_404": "Page not found", @@ -130,6 +130,7 @@ "push_success": "Push success", "push_to_edit": "Editing", "pushed": "Editing", + "save_text": "Save", "search_key_title": "Please enter title keywords", "source": "Source", "title": "Title", diff --git a/src/i18n/translations/zh-CN.json b/src/i18n/translations/zh-CN.json index 76de84d..0e8e838 100644 --- a/src/i18n/translations/zh-CN.json +++ b/src/i18n/translations/zh-CN.json @@ -15,8 +15,8 @@ "delete_failed": "删除失败", "delete_success": "删除成功", "download": "下载", - "downloading": "下载中...", "download_fail": "下载失败", + "downloading": "下载中...", "error_401": "您没有权限访问本页面", "error_403": "您没有权限访问本页面", "error_404": "访问的页面不存在", @@ -130,6 +130,7 @@ "push_success": "推送成功", "push_to_edit": "推入编辑", "pushed": "已推送", + "save_text": "保存", "search_key_title": "请输入新闻标题关键词进行搜索", "source": "来源", "title": "标题", diff --git a/src/pages/news/edit.tsx b/src/pages/news/edit.tsx index 97efb84..7ebd265 100644 --- a/src/pages/news/edit.tsx +++ b/src/pages/news/edit.tsx @@ -41,6 +41,8 @@ export default function NewEdit() { onSuccess: (data) => { FilterCache.title = params.title; FilterCache.tags = params.tags; + setSelectedRowKeys(()=>([])) + setState({checkAll: false}) setData(prev => { // 判断页码是否是第1页 if (data.pagination.page == 1) return data; @@ -101,10 +103,12 @@ export default function NewEdit() { { handleCheckAll(!state.checkAll) }}>{t('select.select_all')} - { - handleCheckAll(e.target.checked) - }}/> + { + handleCheckAll(e.target.checked) + }} + />
diff --git a/src/pages/news/index.tsx b/src/pages/news/index.tsx index 0f38651..638a388 100644 --- a/src/pages/news/index.tsx +++ b/src/pages/news/index.tsx @@ -43,7 +43,7 @@ export default function NewsIndex() { FilterCache.tag_level_2_id = params.tag_level_2_id; FilterCache.title = params.title; FilterCache.time_flag = params.time_flag; - console.log('success',FilterCache) + setCheckedId([]) if (params.pagination.page === 1) { setData(_data) setState({checkAll: checkedId && _data.list && checkedId.length === _data.list.length}) diff --git a/src/pages/recycle/index.tsx b/src/pages/recycle/index.tsx index 1c761ed..bc1b447 100644 --- a/src/pages/recycle/index.tsx +++ b/src/pages/recycle/index.tsx @@ -42,7 +42,10 @@ export default function RecycleIndex() { onSuccess: (data) => { setData(prev => { // 判断页码是否是第1页 - if (data.pagination.page == 1) return data; + if (data.pagination.page == 1) { + setCheckedIdArray([]) + return data; + } return { list: [...(prev?.list || []), ...(data?.list || [])], pagination: data.pagination || {