Parcourir la source

fix: 单位显示"-" 点击提示“客户ID必须”

outaozhen il y a 4 ans
Parent
commit
ff71eca1fc
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/pages/Customer/Client/index.jsx

+ 2 - 2
src/pages/Customer/Client/index.jsx

@@ -153,10 +153,10 @@ const Client = props => {
       width: 200,
       // ellipsis: true,
       render: (companyName, record) =>
-        record.companyId !== consts.ENCRYPTION_ZERO ? (
+        record.companyId ? (
           <span
             onClick={() => {
-              if (record.companyId) {
+              if (record.companyId !== consts.ENCRYPTION_ZERO) {
                 dispatchModal('D_COMPANY_DETAIL', {
                   updateKey: 'client',
                   dataId: record.companyId,