xachary
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
4 deletions
-
src/components/Form/src/components/ApiCascader.vue
|
|
@ -20,7 +20,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
import { type Recordable } from '@vben/types'; |
|
|
import { type Recordable } from '@vben/types'; |
|
|
import { PropType, ref, unref, watch, watchEffect } from 'vue'; |
|
|
import { PropType, ref, unref, watch } from 'vue'; |
|
|
import { Cascader } from 'ant-design-vue'; |
|
|
import { Cascader } from 'ant-design-vue'; |
|
|
import type { CascaderProps } from 'ant-design-vue'; |
|
|
import type { CascaderProps } from 'ant-design-vue'; |
|
|
import { propTypes } from '@/utils/propTypes'; |
|
|
import { propTypes } from '@/utils/propTypes'; |
|
|
@ -159,9 +159,15 @@ |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
watchEffect(() => { |
|
|
watch( |
|
|
props.immediate && initialFetch(); |
|
|
() => props.immediate, |
|
|
}); |
|
|
() => { |
|
|
|
|
|
props.immediate && initialFetch(); |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
immediate: true, |
|
|
|
|
|
}, |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
watch( |
|
|
watch( |
|
|
() => props.initFetchParams, |
|
|
() => props.initFetchParams, |
|
|
|