fix
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user