import { defineStore } from 'pinia' export const useCurrentTabStore = defineStore('currentTab', { state: () => ({ currentTab: null as string | null, showRight: true }), actions: { changeTab(tabName: string) { this.currentTab = tabName; if (tabName === '/drawParamGdi' || tabName === '/drawview' || tabName === '/favorableArea') { this.showRight = false; } else { this.showRight = true; } }, changeShowRight(showVal: boolean) { this.showRight = showVal; } }, });