ปรับ tab ยืมคืน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-08-28 16:38:04 +07:00
parent aadb3927e2
commit d2f28ad2f8
3 changed files with 155 additions and 157 deletions

View file

@ -82,7 +82,7 @@ const fecthInsignia = async () => {
})
.finally(async () => {
insigniaOp.value = await DataStore.insigniaOp.filter(
(x: any) => x.type == tab.value
(x: any) => x.type == tab.value || x.type === ""
);
});
};
@ -159,8 +159,9 @@ const columns = ref<QTableProps["columns"]>([
},
]);
watch(tab, () => {
console.log(DataStore.insigniaOp);
insigniaOp.value = DataStore.insigniaOp.filter(
(x: any) => x.type == tab.value
(x: any) => x.type == tab.value || x.type === ""
);
DataStore.insignia = "";
fecthlistInsignia();