เพิ่ม เเสดงข้อมูลก่อนเเก้

This commit is contained in:
setthawutttty 2023-11-21 17:24:42 +07:00
parent bf3bc89636
commit bd20219da9
4 changed files with 28 additions and 5 deletions

View file

@ -37,8 +37,12 @@ export const useDisciplineChannelDataStore = defineStore(
style: "font-size: 14px",
},
]);
const type = ref<string>('')
// ข้อมูลในตาราง
function getType(data:string){
type.value = ''
type.value = data
}
const rows = ref<ChannelRows[]>([]);
function fetchData(data: ChannelRows[]) {
rows.value = data;
@ -49,6 +53,8 @@ export const useDisciplineChannelDataStore = defineStore(
columns,
rows,
fetchData,
type,
getType
};
}
);