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