-- 项目创建修改

This commit is contained in:
yuping
2022-12-02 17:42:33 +08:00
parent f47c466941
commit 6b152f68b7

View File

@@ -46,9 +46,15 @@ export default {
watch(state.id, () => {
ctx.emit('update:modelValue', state.id)
})
onMounted(() => {
state.options = [{id: props.modelValue, name: props.name}, ...store.state.orgtreeList]
watch(props, () => {
if (props.modelValue !== state.id) {
state.id = props.modelValue
}
})
onMounted(() => {
state.options = [...store.state.orgtreeList]
})
function change(key, obj) {
ctx.emit('update:name', obj[0])
}