Ver código fonte

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

outaozhen 4 anos atrás
pai
commit
ff71eca1fc
1 arquivos alterados com 2 adições e 2 exclusões
  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,