This commit is contained in:
Warunee Tamkoo 2024-08-16 16:40:47 +07:00
parent 87338542ca
commit e8e2a6f83e

View file

@ -427,11 +427,6 @@ if (keycloak.tokenParsed != null) {
role.value = keycloak.tokenParsed.role;
}
const totalInbox = ref<number>(0);
const totalNoti = ref<number>(0);
const round = ref<number>(0);
const page = ref<number>(0);
const clickDelete = async (id: string, index: number) => {
dialogRemove($q, async () => {
showLoader();
@ -441,7 +436,6 @@ const clickDelete = async (id: string, index: number) => {
notiList.value.splice(index, 1);
success($q, "ลบข้อมูลสำเร็จ");
totalInbox.value--;
totalNoti.value--;
})
.catch((e) => {
messageError($q, e);
@ -453,6 +447,11 @@ const clickDelete = async (id: string, index: number) => {
});
};
const totalInbox = ref<number>(0);
const totalNoti = ref<number>(0);
const round = ref<number>(0);
const page = ref<number>(0);
function onLoad(index: any, done: any) {
if (
notiList.value.length < totalInbox.value ||