From 84659b2d8d9c839903988b59905c6e6c338c5e71 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期四, 07 十一月 2024 09:16:38 +0800
Subject: [PATCH] 错题展示
---
src/views/menu/index.vue | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/views/menu/index.vue b/src/views/menu/index.vue
index 4ff1669..b6987e4 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();
@@ -34,9 +34,14 @@
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'
},
]
},
@@ -53,15 +58,20 @@
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>
--
Gitblit v1.8.0