format
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { Station } from '@/apis/domains'
|
||||
import { defineStore } from 'pinia'
|
||||
import { computed, ref } from 'vue'
|
||||
import type { Station } from '@/apis/domains';
|
||||
import { defineStore } from 'pinia';
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
export const useStationStore = defineStore('ndmstation', () => {
|
||||
const stationList = ref<Station[]>([])
|
||||
export const useStationStore = defineStore('ndm-station-store', () => {
|
||||
const stationList = ref<Station[]>([]);
|
||||
|
||||
const onlineStationList = computed(() => stationList.value.filter((station) => station.online))
|
||||
const onlineStationList = computed(() => stationList.value.filter((station) => station.online));
|
||||
|
||||
return { stationList, onlineStationList }
|
||||
})
|
||||
return { stationList, onlineStationList };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user