test: 测试

develop
时启龙 2024-08-27 15:57:16 +08:00
parent f744a664e9
commit 31fc7e35f3
1 changed files with 8 additions and 2 deletions

View File

@ -9,14 +9,20 @@
</split-pane>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
import { computed, defineComponent, ref, watch } from 'vue'
import SplitPane from 'vue-splitpane'
import SideMenu from './SideMenu.vue'
import RightList from './List.vue'
import { useStore } from '@cmp/cmp-core'
export default defineComponent({
components: { SplitPane, SideMenu, RightList },
setup() {
const store = useStore()
console.log(store)
const selectedPostion = computed(() => store.state.position.selectedPostion)
watch(selectedPostion, (val) => {
console.log('阵地切换', val)
})
const listRef = ref()
function handleNodeClick(node: any) {
const { type, id } = node