station.ts 341 B

12345678910111213141516
  1. import { getSiteAddress } from '@/api/home/index-data';
  2. export const stationStore = defineStore('station', () => {
  3. const stationData = ref<any>({});
  4. const onstation = async () => {
  5. const res = await getSiteAddress({});
  6. stationData.value = res.data;
  7. return res.data;
  8. };
  9. return {
  10. stationData,
  11. onstation
  12. };
  13. });