Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
FLL 2025-08-04 10:22:05 +08:00
commit 14d70b22d1

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import {ref, watch} from 'vue';
import {onMounted, ref, watch} from 'vue';
import {Select} from 'ant-design-vue';
import {resident_unitList, resident_unitInfo} from "#/api/property/resident/unit";
@ -17,7 +17,7 @@ const props= withDefaults(defineProps<{
unitId: '',
});
async function queryUnit(value: string, callback: any) {
async function queryUnit(value: string|undefined, callback: any) {
const queryData = {
name: value,
pageSize: 100,
@ -64,6 +64,10 @@ watch(() => props.unitId,
getUnitInfo(newX)
}
}, {immediate: true})
onMounted(()=>{
queryUnit(undefined, (d: any[]) => (data.value = d));
})
</script>
<template>