From dd17279c40da15f32f6f5e00005cdc0f08107a21 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期三, 05 六月 2024 16:59:41 +0800 Subject: [PATCH] chore:修改考试目录 --- src/views/menu/index.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/menu/index.vue b/src/views/menu/index.vue index c9a2c10..2cadedf 100644 --- a/src/views/menu/index.vue +++ b/src/views/menu/index.vue @@ -6,7 +6,7 @@ </el-row> <el-row :gutter="20" class="mb-2"> <el-col :span="3" v-for="item in menu.categroy"> - <div class="menu-item cursor-pointer"> + <div class="menu-item cursor-pointer" @click="testClick(item)"> <el-card shadow="hover" class="menu-card"> <div class="item-icon mx-auto"> <img :src="item.iconPath" class="icon-img" alt=""> @@ -25,6 +25,9 @@ <script setup> import { ref } from 'vue'; +import {useRouter} from 'vue-router'; + +const router = useRouter(); const menuList = ref([ { @@ -54,6 +57,10 @@ ] }, ]); + +const testClick = (item) => { + router.push('/exam-list'); +} </script> <style lang="scss" scoped> @@ -72,13 +79,11 @@ } .item-icon { - width: 90px; - height: 90px; + width: 65%; } .icon-img { width: 100%; - height: 100%; object-fit: cover; } </style> \ No newline at end of file -- Gitblit v1.8.0