Commit 421750c9d6012d29a0d2eb2686c9fd60f2157266

Authored by 陈洋
1 parent 350676d4

pref: 代码逻辑优化

Showing 1 changed file with 7 additions and 0 deletions
@@ -59,6 +59,13 @@ const FormSelectMain: React.FC<FormSelectProps>= (props)=> { @@ -59,6 +59,13 @@ const FormSelectMain: React.FC<FormSelectProps>= (props)=> {
59 59
60 useEffect(() => { 60 useEffect(() => {
61 if (!value || !Object.keys(value || {})?.length || !value?.formId) { 61 if (!value || !Object.keys(value || {})?.length || !value?.formId) {
  62 + setItem({
  63 + flag: 'SINGLE',
  64 + code: '',
  65 + appId: appId || '',
  66 + name: '',
  67 + appName: ''
  68 + });
62 return; 69 return;
63 } 70 }
64 71