mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
-- 项目创建修改
This commit is contained in:
@@ -46,9 +46,15 @@ export default {
|
|||||||
watch(state.id, () => {
|
watch(state.id, () => {
|
||||||
ctx.emit('update:modelValue', state.id)
|
ctx.emit('update:modelValue', state.id)
|
||||||
})
|
})
|
||||||
onMounted(() => {
|
watch(props, () => {
|
||||||
state.options = [{id: props.modelValue, name: props.name}, ...store.state.orgtreeList]
|
if (props.modelValue !== state.id) {
|
||||||
|
state.id = props.modelValue
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
onMounted(() => {
|
||||||
|
state.options = [...store.state.orgtreeList]
|
||||||
|
})
|
||||||
|
|
||||||
function change(key, obj) {
|
function change(key, obj) {
|
||||||
ctx.emit('update:name', obj[0])
|
ctx.emit('update:name', obj[0])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user