ข้อมููลทะเบียนประวัติ: UI+API

This commit is contained in:
oat 2024-02-08 16:31:21 +07:00
parent 12b8c347ce
commit 8a472dc923
4 changed files with 625 additions and 5 deletions

View file

@ -0,0 +1,20 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import { useCounterMixin } from "@/stores/mixin";
// const { date2Thai } = useCounterMixin();
export const useRegistryDataStore = defineStore("RegistryData", () => {
const row = ref<[]>([]);
function save(data: any) {
const list = data.map((e: any) => ({
...e,
})) satisfies [];
row.value = list;
}
return {
save,
row,
};
});