lanjianrong 4 yıl önce
ebeveyn
işleme
2f86fd95cc

+ 2 - 3
src/pages/Product/Lock/LockStore/components/LocksDetail/TabList.jsx

@@ -9,7 +9,6 @@ import ClientDetail from '@/pages/Customer/Client/components/ClientDetail'
 import { servicelogEnum, showProductsStatus, showNewLongleStatus, showMarkStatus } from './consts'
 import { useDispatch, useAccess } from 'umi'
 import { useModal } from '@/components/Modal'
-import { useAccess } from '@/.umi/plugin-access/access'
 
 const RenderLongleCon = ({ longleService }) => {
   return (
@@ -95,9 +94,9 @@ const LockTabList = props => {
   }
 
   // 删除软件锁日志
-  const delLonglelog = async id => {
+  const delLonglelog = async longleId => {
     const { code = -1 } = await apiDelLonglelog({
-      id
+      id: longleId
     })
     if (code === consts.RET_CODE.SUCCESS) {
       message.success('删除成功')