import { defineStore } from 'pinia'

export const useTreeStore = defineStore('tree', {
  state: () => ({
    selectedId: null // 存储当前选中的树节点 ID
  }),
  actions: {
    // 更新选中的节点 ID
    setSelectedId(id) {
      this.selectedId = id;
    }
  }
});
