lanjianrong 5 년 전
부모
커밋
07ed508228
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/LazyCascader/LazyCascader.jsx

+ 2 - 2
src/components/LazyCascader/LazyCascader.jsx

@@ -1,9 +1,9 @@
 import { Cascader } from 'antd'
-import React, { forwardRef, useEffect, useRef } from 'react'
+import React, { forwardRef, useEffect } from 'react'
 import { connect } from 'dva'
 
 const CLazyCascader = props => {
-  const { options, dispatch, onChange, ...resetProps } = props
+  const { refinstance, options, dispatch, onChange, ...resetProps } = props
   // console.log(props.defaultValue)
   useEffect(() => {
     if (!options.length) {