courseStore.js 205 B

12345678910111213
  1. import {
  2. defineStore
  3. } from 'pinia'
  4. export const useCourseStore = defineStore('course', {
  5. state: () => ({
  6. currentTab: 0,
  7. }),
  8. actions: {
  9. setCurrentTab(index) {
  10. this.currentTab = index;
  11. },
  12. }
  13. })