修复菜单主类目不能被选择问题

master
RuoYi 3 years ago
parent a036b5a124
commit 18004588ed
  1. 2
      src/components/TreeSelect/index.vue

@ -82,7 +82,7 @@ const defaultExpandedKey = ref([]);
function initHandle() { function initHandle() {
nextTick(() => { nextTick(() => {
const selectedValue = valueId.value; const selectedValue = valueId.value;
if(selectedValue && selectedValue !== null && typeof (selectedValue) !== "undefined"){ if(selectedValue !== null && typeof (selectedValue) !== 'undefined') {
const node = proxy.$refs.selectTree.getNode(selectedValue) const node = proxy.$refs.selectTree.getNode(selectedValue)
if (node) { if (node) {
valueTitle.value = node.data[props.objMap.label] valueTitle.value = node.data[props.objMap.label]

Loading…
Cancel
Save