import { defineStore } from 'pinia'
export default defineStore('speakInfo', {
  state: () => ({
    reportId: '',
    index: 0,
    stockCode: '',
    stockName: '股票',
    date: '日期',
    reportTypeName: '类型',
    reportType: ''
  }),
  persist: {
    enabled: true,
    strategies: [
      {
        key: 'speakInfo', // 持久化状态的键
        storage: localStorage // 使用localStorage来持久化状态
      }
    ]
  }
})
