|
|
|
@ -339,9 +339,19 @@ import { useUserStore } from '@/store/modules/user' |
|
|
|
|
const message = useMessage() |
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
const currentUserId = userStore.getUser.id |
|
|
|
|
const emit = defineEmits(['edit']) |
|
|
|
|
const emit = defineEmits(['edit', 'close']) |
|
|
|
|
|
|
|
|
|
const show = ref(false) |
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
() => show.value, |
|
|
|
|
(newValue, oldValue) => { |
|
|
|
|
if (oldValue && !newValue) { |
|
|
|
|
emit('close', nodeInfo.value) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
const canEdit = ref(false) |
|
|
|
|
|
|
|
|
|
const toolbarConfig = { |
|
|
|
|