แก้ tap ข้างขวาใน addEmployee

This commit is contained in:
AnandaTon 2023-07-24 17:29:21 +07:00
parent 5d20d4f279
commit b7ee12468a

View file

@ -68,7 +68,7 @@ const options = ref<optionType[]>([
* ใหแสดง แทปดานขวา เมอเขาหน รายละเอยดทะเบยนประว * ใหแสดง แทปดานขวา เมอเขาหน รายละเอยดทะเบยนประว
*/ */
const tabScroll = () => { const tabScroll = () => {
return route.name == "registryDetail" || route.name == "registryEmployeeAdd"; return route.name == "registryDetail";
}; };
/** /**
@ -157,10 +157,7 @@ const updateScroll = (position: number) => {
* ใหแสดง แทปดานขวา เมอเขาหน รายละเอยดทะเบยนประว และ rightActive เทาก true * ใหแสดง แทปดานขวา เมอเขาหน รายละเอยดทะเบยนประว และ rightActive เทาก true
*/ */
const activeBtn = () => { const activeBtn = () => {
return ( return route.name == "registryDetail" && rightActive.value;
(route.name == "registryDetail" || route.name == "registryEmployeeAdd") &&
rightActive.value
);
}; };
/** /**
@ -225,8 +222,7 @@ const myEventHandler = (e: any, setSCroll: boolean) => {
const activeMenu = (path: string) => { const activeMenu = (path: string) => {
if (path == "dashboard" && route.fullPath == "/") return true; if (path == "dashboard" && route.fullPath == "/") return true;
if (path == "registry" && route.fullPath.includes("registryEmployee")) if (path == "registry" && route.fullPath == "/") return false;
return false;
const bool = route.fullPath.includes(path); const bool = route.fullPath.includes(path);
return bool; return bool;
}; };