ปรับข้อมูลหลักเครื่องราชฯ
This commit is contained in:
parent
a7fa6e6cf4
commit
f3e2b2c06b
4 changed files with 44 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue