แก้ tap ข้างขวาใน addEmployee
This commit is contained in:
parent
5d20d4f279
commit
b7ee12468a
1 changed files with 3 additions and 7 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue