diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 97861cb..261cf7d 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -9,12 +9,12 @@ const $q = useQuasar(); const tab = ref('') -const currentRouteName = ref(''); +const currentRouteName = router.currentRoute.value.name; +const currentRoute = ref(currentRouteName); const text = ref(''); const menuList = [ {text:'ข้อมูลหลัก',path: 'metadata'}, {text:'โครงสร้างอัตรากำลัง',path: 'organizational'}, - ]; const mainmenu = [ @@ -33,26 +33,29 @@ const mainmenu = [ const clickMain = (val: string) => { router.push(val) - currentRouteName.value = val + currentRoute.value = val tab.value=val }; const goHome = () => { router.push('/') - currentRouteName.value = '' + currentRoute.value = 'home' }; const click = () => { router.push('/contact') - currentRouteName.value = 'contact' + currentRoute.value = 'contact' }; +const scrollInfo = ref({}) +const onScroll = (info: any) => { scrollInfo.value = info} -
+
ระบบทรัพยากรบุคคล
@@ -118,27 +119,33 @@ const click = () => {
-
-
+
+ + + +
+ + + +
- -
- - - -
- -
- - - - - -
-
+
+ + + + + +
+ + +
+ + + + @@ -208,7 +215,7 @@ const click = () => { } .content-heigt{ - height: 55vh !important; + height: 60vh !important; overflow-y:auto; }