lanjianrong il y a 4 ans
Parent
commit
430da04063

+ 0 - 1
.stylelintrc.js

@@ -8,7 +8,6 @@ module.exports = {
     'max-empty-lines': 2,
     'rule-empty-line-before': null,
     'unit-no-unknown': null,
-    'unit-whitelist': ['px', 'em', 'rem', 's', '%', 'vw', 'vh', 'deg'],
     'selector-max-compound-selectors': 5,
     'color-hex-length': 'long',
     'at-rule-no-unknown': null,

+ 2 - 2
src/pages/Customer/Client/components/ClientDetail/LowerList.tsx

@@ -76,7 +76,7 @@ type ServiceLogItemProps = {
 export const ServiceLogItem: React.FC<ServiceLogItemProps> = ({ item, logType, updatePayload }) => {
   const dispatchModal = useModal()
   const dispatch = useDispatch()
-  const { run: truUpdate, loading: comfirmLoading } = useRequest(
+  const { run: truUpdate } = useRequest(
     logType === ServiceLogType.COMPANY ? updateCustomerService : updateClientService,
     {
       manual: true,
@@ -150,7 +150,7 @@ export const ServiceLogItem: React.FC<ServiceLogItemProps> = ({ item, logType, u
         </div>
         {item.isOperation ? (
           <div className="mt-2">
-            <Button size="small" onClick={() => handleOnEdit(item)} loading={comfirmLoading}>
+            <Button size="small" onClick={() => handleOnEdit(item)}>
               编辑
             </Button>
             <Popconfirm title="确认删除该服务记录吗?" onConfirm={() => truDel({ id: item.id })}>