import { defineStore } from 'pinia'
export default defineStore('saveCusInfo', {
  state: () => ({
    cusName: '',
    cusLevelName: '',
    selectcusLevel: '',
    cusUserName: '',
    selectcusUser: '',
    companyTypeName: '',
    selectcompanyType: '',
    cityName: '',
    selectcity: '',
    address: '',
    accountStatus: '1',
    accountTime: '',
    selectaccountTime: [] as string[],
    accountTypeNames: '',
    selectaccountTypeIds: [],
    isMoney: '0',
    tradeMoney: '',
    capitalScaleName: '',
    selectcapitalScale: '',
    capitalScaleValue: '',
    fundNum: '',
    investOverseasPer: '',
    investResearchNum: '',
    investChannelName: '',
    selectinvestChannel: '',
    website: '',
    companyCreateTime: '',
    selectcompanyCreateTime: [] as string[],
    introduction: '',
    saleUserNames: '',
    selectsaleUserIds: []
  }),
  persist: {
    enabled: true,
    strategies: [
      {
        key: 'saveCusInfo', // 持久化状态的键
        storage: localStorage // 使用localStorage来持久化状态
      }
    ]
  }
})
