|
|
@@ -2,9 +2,10 @@ import React from 'react'
|
|
|
import { Card, Tooltip } from 'antd'
|
|
|
import { Download } from '@icon-park/react'
|
|
|
import styles from '@/pages/Product/Lock/LockStore/components/ChangeClient/index.less'
|
|
|
+import { isEmpty, isNullOrUnDef } from '@/utils/is'
|
|
|
|
|
|
-const DownUpdateFile = props => {
|
|
|
- const { updateFile } = props.dataSource
|
|
|
+const DownUpdateFile = ({ updateFile }) => {
|
|
|
+ if (isNullOrUnDef(updateFile) || isEmpty(updateFile)) return null
|
|
|
const handleDownExcel = () => {
|
|
|
const oa = document.createElement('a')
|
|
|
oa.href = `http://cld.smartcost.com.cn/${updateFile}`
|