Refactoring code module 01_metadata => 05_insignia

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-09 13:18:50 +07:00
parent cb1a5251a1
commit 6c2e9437a4
6 changed files with 859 additions and 1113 deletions

View file

@ -10,10 +10,8 @@ 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;
// });
async function fetchData(data: DataResponse[], insigniaType?: string) {
const list = data.map((e) => ({
...e,
insigniaType: insigniaType,