This commit is contained in:
X1627315083@163.com
2026-02-26 10:19:51 +08:00
parent 8ebaa46211
commit ccc6d2cb7b
9 changed files with 123 additions and 26 deletions

View File

@@ -2,6 +2,8 @@
import { ref, onMounted, onUnmounted, reactive, toRefs, watch, nextTick } from "vue";
import view1Item from './view1Item.vue'
import view2 from './view2/index.vue'
import { useProjectStore } from '@/stores'
const props = defineProps({
versionsList: {
@@ -28,6 +30,8 @@ const view1Ref = ref(null)
const isLoad = ref(false)
const treeStateTime = ref(true)
const projectStore = useProjectStore()
watch(()=>props.treeState,(newVal,oldVal)=>{
treeStateTime.value = false
@@ -68,6 +72,8 @@ const initialize = ()=>{
const setSelectItem = (item)=>{
if(!item.versionId)return
console.log(item)
// projectStore.setProject({latestNodeId: item.id})
emit('update:selectItem', {...item})
}