ทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-17 15:50:22 +07:00
parent f7c8315209
commit 8c0befa186
2 changed files with 88 additions and 204 deletions

View file

@ -38,7 +38,15 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
id: e.id,
name: e.posLevelName,
}));
posLevelOps.value = list;
const seen = new Set();
posLevelOps.value = list.filter((item: DataOption) => {
if (seen.has(item.name)) {
return false;
} else {
seen.add(item.name);
return true;
}
});
}
return {
fetchType,