import { defineStore } from 'pinia'
export default defineStore('etfStockInfo', {
  state: () => ({
    stockCode: '',
    companyList: <any>[],
    xAxisData: []
  }),
  persist: {
    enabled: true,
    strategies: [
      {
        key: 'etfStockInfo', // 持久化状态的键
        storage: localStorage // 使用localStorage来持久化状态
      }
    ]
  }
})
