fix route.name ทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-13 17:42:22 +07:00
parent b47a13be32
commit 53ae95d48e

View file

@ -24,7 +24,11 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
{ id: "position", name: "ตำแหน่งในสายงาน" },
{
id: "posNo",
name: route.name === "registryNew" ? "เลขที่ตำแหน่ง" : "ตำแหน่งเลขที่",
name:
route.name === "registryNew" ||
route.name === "registryRetireOfficer"
? "เลขที่ตำแหน่ง"
: "ตำแหน่งเลขที่",
},
];
});