From a8c4d1497f36a343f52dab3d2d1ef6dea6f622dc Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期三, 19 六月 2024 16:54:49 +0800 Subject: [PATCH] feat(成绩):查看考后试卷 --- src/components/NormalHeader/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/NormalHeader/index.vue b/src/components/NormalHeader/index.vue index 4375271..fcf5395 100644 --- a/src/components/NormalHeader/index.vue +++ b/src/components/NormalHeader/index.vue @@ -1,6 +1,6 @@ <template> - <div class="w-screen h-16 bg-blue-400 flex justify-between items-center px-10 box-border"> - <div class="return-container text-center cursor-pointer"> + <div class="w-screen h-16 bg-blue-500 flex justify-between items-center px-10 box-border"> + <div class="return-container text-center cursor-pointer" @click="returnBack"> <div class="icon mx-auto"> <img src="@/assets/icons/return.png" class="width-img" alt=""> </div> @@ -23,11 +23,18 @@ <script setup> import { ref, computed } from 'vue'; +import { useRouter } from 'vue-router'; import randomColor from '@/utils/randomColor.js'; + +const router = useRouter(); const getColor = computed(() => { return randomColor(); }); + +const returnBack = () => { + router.back(); +} </script> <style lang="scss" scoped> -- Gitblit v1.8.0