| | |
| | | |
| | | <script setup> |
| | | import { ref } from 'vue'; |
| | | import {useRouter} from 'vue-router'; |
| | | import { useRouter } from 'vue-router'; |
| | | |
| | | const router = useRouter(); |
| | | |
| | |
| | | name: '课程', |
| | | categroy: [ |
| | | { |
| | | title: '我的课程', |
| | | title: '在线培训', |
| | | iconPath: new URL('@/assets/icons/icon2.png', import.meta.url).href, |
| | | path: '/train' |
| | | }, |
| | | { |
| | | title: '教学资源', |
| | | iconPath: new URL('@/assets/icons/icon1.png', import.meta.url).href, |
| | | path: '/exam-list' |
| | | path: '/folder' |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | iconPath: new URL('@/assets/icons/icon1.png', import.meta.url).href, |
| | | path: '/grade-list' |
| | | }, |
| | | { |
| | | title: '我的错题', |
| | | iconPath: new URL('@/assets/icons/icon3.png', import.meta.url).href, |
| | | path: '/wrong-list' |
| | | }, |
| | | ] |
| | | }, |
| | | ]); |
| | | |
| | | const menuClick = (item) => { |
| | | if(item.path) { |
| | | if (item.path) { |
| | | router.push(item.path); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |