เครื่องราชฯ filter หน่วยงาน
This commit is contained in:
parent
dd6f10d3c7
commit
1b2543bbb9
1 changed files with 2 additions and 1 deletions
|
|
@ -125,8 +125,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
*/
|
||||
function fetchOption(op: any) {
|
||||
const aId = agency.value ?? "00000000-0000-0000-0000-000000000000";
|
||||
const hasID = op.find((e: any) => e.id === agency.value);
|
||||
|
||||
if (aId !== "00000000-0000-0000-0000-000000000000") {
|
||||
if (aId !== "00000000-0000-0000-0000-000000000000" && hasID) {
|
||||
typeOc.value = agency.value;
|
||||
optionsTypeOc.value = op;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue