Forráskód Böngészése

fix: 云版移除客户接口调用修改

outaozhen 4 éve
szülő
commit
c628f7da09
1 módosított fájl, 3 hozzáadás és 11 törlés
  1. 3 11
      src/pages/Product/Cloud/components/Detail/index.jsx

+ 3 - 11
src/pages/Product/Cloud/components/Detail/index.jsx

@@ -7,20 +7,12 @@ import Form from './Form'
 import ClientDetail from '@/pages/Customer/Client/components/ClientDetail/Form'
 import LowerList from './LowerList'
 import TabList from './TabList'
-import { apiRoadpricingDetail, apiRoadPricingUnLinkCustomer } from '@/services/product'
+import { apiRoadpricingDetail, apiRoadPricingUnLinkClient } from '@/services/product'
 import { useModal } from '@/components/ModalStore'
 import CardClientDetail from '../CardDetail'
 
 const CloudDetail = props => {
-  const {
-    dispatch,
-    updateKey = 'cloud',
-    refresh,
-    visible,
-    dataId,
-    projectType,
-    ...resetDrawerProps
-  } = props
+  const { dispatch, updateKey = 'cloud', refresh, visible, dataId, projectType, ...resetDrawerProps } = props
   const dispatchModal = useModal()
   const shouldUpdate = refresh?.[dataId ?? updateKey] || false
   const refreshDetail = () => {
@@ -67,7 +59,7 @@ const CloudDetail = props => {
     Modal.confirm({
       title: '确认移除',
       onOk: async () => {
-        const { code = -1 } = await apiRoadPricingUnLinkCustomer({
+        const { code = -1 } = await apiRoadPricingUnLinkClient({
           id: dataId,
           clientId,
           projectType