เพิ่ม button back

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-07-17 16:13:18 +07:00
parent 9d3e90e9b2
commit 1782765dba
2 changed files with 18 additions and 2 deletions

View file

@ -126,7 +126,7 @@
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-tr :props="props" class="cursor-pointer" @click="nextPage">
<q-td key="no" :props="props">
{{ props.rowIndex + 1 }}
</q-td>
@ -369,6 +369,9 @@ const paginationLabel = (start: string, end: string, total: string) => {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
};
const nextPage = () => {
router.push("/retirement/list");
};
</script>
<style lang="scss" scope>