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