You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
290 B

  1. import { apiGetAllVotes } from "@/apis/voteRecord";
  2. import { defineStore } from "pinia";
  3. export const useVoteRecordStore = defineStore("VoteRecord", () => {
  4. const getAllVotes = async (condition) => {
  5. return await apiGetAllVotes(condition)
  6. };
  7. return {
  8. getAllVotes,
  9. };
  10. });