diff --git a/.vitepress/config.mts b/.vitepress/config.mts index b55e489..0579bac 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -188,11 +188,11 @@ export default defineConfig({ link: '/en/DataInterpreter/index', activeMatch: '/en/DataInterpreter/', }, - // { - // text: 'SELA', - // link: '/en/sale/index', - // activeMatch: '/en/sale/', - // }, + { + text: 'SELA', + link: '/en/sela/index', + activeMatch: '/en/sela/', + }, ], }, ...arrVisible( @@ -470,11 +470,11 @@ export default defineConfig({ link: '/zh/DataInterpreter/index', activeMatch: '/zh/DataInterpreter/', }, - // { - // text: 'SELA', - // link: '/zh/sale/index', - // activeMatch: '/zh/sale/', - // }, + { + text: 'SELA', + link: '/zh/sela/index', + activeMatch: '/zh/sela/', + }, ], }, ...arrVisible( diff --git a/src/components/demo2/demo2.vue b/src/components/demo2/demo2.vue index 6dac324..1345d3d 100644 --- a/src/components/demo2/demo2.vue +++ b/src/components/demo2/demo2.vue @@ -202,6 +202,12 @@ const draw = () => { }; const activeTreeNodeId = ref(null); +const activeTreeNode = computed(() => { + return ( + list.value?.[index.value]?.find((_) => _.id === activeTreeNodeId.value) || + {} + ); +}); // 获取从根节点到目标节点的路径ID数组 const getNodePathIds = (nodeId, allNodes) => { const pathIds = []; @@ -453,7 +459,7 @@ onMounted(() => {