Renxy hai 1 ano
pai
achega
f72f446793
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/pages/DeviceManager/index.js

+ 4 - 2
src/pages/DeviceManager/index.js

@@ -21,7 +21,7 @@ const spareIcon = require('@/assets/deviceManager/spareIcon.png');
 const DeviceManager = () => {
   const { projectId } = useParams();
   const [defaultActiveKey, setDefaultActiveKey] = useState(
-    localStorage.deviceTab || "1"
+    localStorage.deviceTab || '1',
   );
 
   const onChange = (tab) => {
@@ -165,7 +165,9 @@ const Device = ({ projectId }) => {
                   }`}
                   onClick={() => handleItemClick(cur.Code)}
                 >
-                  <span style={{ marginRight: '166px' }}> {cur.Code} </span>
+                  <span style={{ width: '30%', textAlign: 'left' }}>
+                    {cur.Code}
+                  </span>
                   <span> {cur.Name} </span>
                 </List.Item>
               )}