mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
-- bug
This commit is contained in:
@@ -33,16 +33,12 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
const emit = defineEmits({})
|
const emit = defineEmits({})
|
||||||
|
|
||||||
const options = ref([])
|
const options = computed(() => store.state.orgtreeList)
|
||||||
|
|
||||||
const id = computed(() => {
|
const id = computed(() => {
|
||||||
return props.value
|
return props.value
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
options.value = [...store.state.orgtreeList]
|
|
||||||
})
|
|
||||||
|
|
||||||
function change(key, obj) {
|
function change(key, obj) {
|
||||||
emit('update:name', obj[0])
|
emit('update:name', obj[0])
|
||||||
emit('update:value', key)
|
emit('update:value', key)
|
||||||
|
|||||||
Reference in New Issue
Block a user