This commit is contained in:
yuping
2022-12-14 20:36:37 +08:00
parent 1ce9bf7c4d
commit 42340e38d0
9 changed files with 63 additions and 23 deletions

View File

@@ -23,7 +23,7 @@
</a-tree-select>
</template>
<script setup>
import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
import {computed, defineEmits, defineProps} from "vue";
import {useStore} from "vuex";
const store = useStore();
@@ -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)