mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
@@ -20,7 +20,7 @@
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
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 type { CascaderProps } from 'ant-design-vue';
|
||||
import { propTypes } from '@/utils/propTypes';
|
||||
@@ -159,9 +159,15 @@
|
||||
}
|
||||
};
|
||||
|
||||
watchEffect(() => {
|
||||
props.immediate && initialFetch();
|
||||
});
|
||||
watch(
|
||||
() => props.immediate,
|
||||
() => {
|
||||
props.immediate && initialFetch();
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.initFetchParams,
|
||||
|
Reference in New Issue
Block a user