guoqqqi commented on code in PR #2502:
URL: https://github.com/apache/apisix-dashboard/pull/2502#discussion_r939676320


##########
web/src/pages/Route/List.tsx:
##########
@@ -542,6 +545,33 @@ const Page: React.FC = () => {
         actionRef={ref}
         rowKey="id"
         columns={columns}
+        rowSelection={rowSelection}
+        tableAlertRender={() => (
+          <Space size={24}>
+            <span>
+            {formatMessage({ id: 'page.route.chosen' })} 
{selectedRowKeys.length} {formatMessage({ id: 'page.route.item' })}
+            </span>
+          </Space>
+        )}
+        tableAlertOptionRender={() => {
+          return (
+            <Space size={16}>
+              <Button
+               onClick={async () => {
+               await remove(selectedRowKeys).then(() => {
+                handleTableActionSuccessResponse(
+                  `${formatMessage({ id: 'component.global.delete' })} 
${formatMessage({
+                    id: 'menu.routes',
+                  })} ${formatMessage({ id: 'component.status.success' })}`,

Review Comment:
   
![image](https://user-images.githubusercontent.com/72343596/183295386-383aebee-714c-47cd-a8ff-3daf99a54f75.png)
   What I mean is that we shouldn't use template splicing, it leaves extra 
spaces in the Chinese state.
   ```suggestion
                     {formatMessage({ id: 
'component.global.delete.routes.success' })},
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to