แก้ไข manual เเละแก้ layout

This commit is contained in:
AnandaTon 2024-06-24 15:52:06 +07:00
parent 16ab4806a5
commit f893e834ba
2 changed files with 103 additions and 67 deletions

View file

@ -476,13 +476,15 @@ watch(
);
const handleButtonClick = () => {
const currentPath = route.path;
const popupPath =
config.manualConfig[currentPath as keyof typeof config.manualConfig];
const currentPath = route.name;
// const popupPath =
// config.manualConfig[currentPath as keyof typeof config.manualConfig];
const popupPath = config.generatePopupPath(currentPath);
if (popupPath) {
// console.log(currentPath);
window.open(popupPath);
} else {
alert("No mapping found for this route");
console.log("no manual in this page ", currentPath);
}
};
</script>
@ -529,11 +531,13 @@ const handleButtonClick = () => {
dense
flat
size="13px"
class="q-mx-md bg-grey-3"
class="bg-grey-3"
:color="totalNoti === 0 ? 'grey-6' : 'grey-8'"
@click="handleButtonClick()"
style="margin-right: 10px"
>
<q-icon name="mdi-book" size="18px" color="grey-7" />
<q-icon name="mdi-book-open-variant" size="18px" color="grey-7" />
<q-tooltip></q-tooltip>
</q-btn>
<!-- Notification -->
<q-btn
@ -541,7 +545,7 @@ const handleButtonClick = () => {
dense
flat
size="13px"
class="q-mx-md bg-grey-3"
class="bg-grey-3"
:color="totalNoti === 0 ? 'grey-6' : 'grey-8'"
>
<q-icon name="mdi-bell" size="18px" color="grey-7" />