diff --git a/src/components/project/OrgClass.vue b/src/components/project/OrgClass.vue index 72c82170..29e10290 100644 --- a/src/components/project/OrgClass.vue +++ b/src/components/project/OrgClass.vue @@ -33,16 +33,12 @@ const props = defineProps({ }) const emit = defineEmits({}) -const options = ref([]) +const options = computed(() => store.state.orgtreeList) const id = computed(() => { return props.value }) -onMounted(() => { - options.value = [...store.state.orgtreeList] -}) - function change(key, obj) { emit('update:name', obj[0]) emit('update:value', key)