--fix bug

This commit is contained in:
yuping
2023-06-01 00:33:27 +08:00
parent e2b416234b
commit 4680d44799
3 changed files with 14 additions and 3 deletions

View File

@@ -36,7 +36,7 @@
</a-tree-select>
</template>
<script setup>
import { defineEmits, defineProps, ref, watch } from "vue";
import {defineEmits, defineProps, ref, watch, watchEffect} from "vue";
import { boeRequest, useBoeApi } from "@/api/request";
import { ORG_CHILD_LIST, ORG_LIST } from "@/api/ThirdApi";
@@ -66,6 +66,10 @@ const { data: options, loading: orgLoading } = useBoeApi(
}
);
watchEffect(()=>{
labelValue.value = props.value;
})
watch(props, () => {
// stuTreeExpandedKeys.value = [];
// console.log("labelValue.value", labelValue.value, props.value);