From 6c34d8df858b0c795dd06da0962c22f9d1c40bd2 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期四, 13 六月 2024 14:50:48 +0800 Subject: [PATCH] feat(在线培训):添加在线培训流程 --- src/views/menu/index.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/menu/index.vue b/src/views/menu/index.vue index 4ff1669..668c68a 100644 --- a/src/views/menu/index.vue +++ b/src/views/menu/index.vue @@ -25,7 +25,7 @@ <script setup> import { ref } from 'vue'; -import {useRouter} from 'vue-router'; +import { useRouter } from 'vue-router'; const router = useRouter(); @@ -33,6 +33,11 @@ { name: '璇剧▼', categroy: [ + { + 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, @@ -58,10 +63,10 @@ ]); const menuClick = (item) => { - if(item.path) { + if (item.path) { router.push(item.path); } -} +}; </script> <style lang="scss" scoped> -- Gitblit v1.8.0