ปรับข้อมูลหลักเครื่องราชฯ

This commit is contained in:
Warunee Tamkoo 2024-01-30 13:43:25 +07:00
parent a7fa6e6cf4
commit f3e2b2c06b
4 changed files with 44 additions and 36 deletions

View file

@ -11,9 +11,9 @@ const { date2Thai } = useCounterMixin();
export const useInsigniaDataStore = defineStore("insigniaData", () => {
const row = ref<DataRow[]>([]);
function fetchData(data: DataResponse[], insigniaType?: string) {
data.forEach((row, index) => {
row.level = index + 1;
});
// data.forEach((row, index) => {
// row.level = index + 1;
// });
const list = data.map((e) => ({
...e,
insigniaType: insigniaType,