From b34535a0b4579da937cee8188f8f3fd249a028c3 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 27 九月 2022 16:25:57 +0800
Subject: [PATCH] up

---
 src/views/record/index.vue |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index a7996b7..3b88dc4 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -1,5 +1,11 @@
 <template>
     <div class="record">
+        <van-nav-bar
+            title=""
+            left-text="返回"
+            left-arrow
+            @click="fanhui"
+        />
         <div>
             <van-calendar
                 color="#769AFF"
@@ -68,8 +74,13 @@
 <script lang="ts" setup>
     // import {ref,reactive,watchEffect,watch} from 'vue'
     import { Calendar as vanCalendar } from 'vant'
+    import {useRouter} from 'vue-router'
+    const router=useRouter()
     const selectData=(data:any)=>{
         console.log(data)
+    }
+    const fanhui=()=>{
+        router.go(-1)
     }
     const formatter=(day:any)=>{
         const month = day.date.getMonth() + 1
@@ -141,4 +152,14 @@
             }
         }
     }
+    .fanhui{
+    // padding-top: 20px;
+    width: 100%;
+    background: #4696F9;
+    text-align: center;
+    border-radius: 5px;
+    color:#FFFFFF;
+    height: 36px;
+    line-height: 36px;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0