Browse Source

locale(datasource): update datasource

crush394 4 years atrás
parent
commit
2dd27237c1

+ 1 - 0
jsconfig.json

@@ -1,5 +1,6 @@
 {
   "compilerOptions": {
+    "jsx": "react-jsx",
     "emitDecoratorMetadata": true,
     "experimentalDecorators": true,
     "baseUrl": ".",

+ 2 - 2
src/pages/device/Instance/Detail/Metadata/ItemList/index.tsx

@@ -1,4 +1,4 @@
-import { MetadataItem } from '@/pages/device/Product/typings';
+import type { MetadataItem } from '@/pages/device/Product/typings';
 import { InstanceModel } from '@/pages/device/Instance';
 import { Popconfirm, Tooltip } from 'antd';
 import { CloseCircleOutlined } from '@ant-design/icons';
@@ -47,7 +47,7 @@ const ItemList = (props: Props) => {
           ],
         },
       }}
-    ></ProList>
+    />
   );
 };
 export default ItemList;

+ 2 - 2
src/pages/system/DataSource/index.tsx

@@ -74,7 +74,7 @@ const DataSource = () => {
     {
       title: intl.formatMessage({
         id: 'pages.searchTable.titleStatus',
-        defaultMessage: '说明',
+        defaultMessage: '状态',
       }),
       dataIndex: 'state',
       render: (value: any) => value.text,
@@ -82,7 +82,7 @@ const DataSource = () => {
     {
       title: intl.formatMessage({
         id: 'pages.data.option',
-        defaultMessage: '说明',
+        defaultMessage: '操作',
       }),
       valueType: 'option',
       align: 'center',