ข้อมูลตำแหน่ง: เพิ่มจำtab

This commit is contained in:
oat 2024-02-07 11:35:26 +07:00
parent 727f3c6765
commit 253163fecc
2 changed files with 10 additions and 7 deletions

View file

@ -9,8 +9,8 @@ import { useCounterMixin } from "@/stores/mixin";
const { date2Thai } = useCounterMixin();
export const usePositionDataStore = defineStore("PositionData", () => {
const pathLocation = ref<string>("list_position");
const row = ref<DataRow[]>([]);
const name = ref<any>([]);
function save(data: DataResponse[], id: string) {
const list = data.map((e) => ({
...e,
@ -26,5 +26,6 @@ export const usePositionDataStore = defineStore("PositionData", () => {
return {
save,
row,
pathLocation,
};
});