From 6538af0c59bce39488cef2bb4448c8f0f8abce00 Mon Sep 17 00:00:00 2001
From: 13684185576 <2731628804@qq.com>
Date: Thu, 6 Nov 2025 11:42:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 2 --
src/pages/clockInPage/index.vue | 13 ++++++++++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index fbac51d..1f3825c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -104,10 +104,8 @@ onMounted(() => {
});
const getLocation = () => {
if ("geolocation" in navigator) {
- console.log(navigator.geolocation, "navigator.geolocation");
navigator.geolocation.getCurrentPosition(
(pos) => {
- console.log(pos.coords, "pos");
if (pos.coords) {
var latitude = pos.coords.latitude;
var longitude = pos.coords.longitude;
diff --git a/src/pages/clockInPage/index.vue b/src/pages/clockInPage/index.vue
index ae66701..7b999e8 100644
--- a/src/pages/clockInPage/index.vue
+++ b/src/pages/clockInPage/index.vue
@@ -151,6 +151,7 @@ const { formattedTime, isExpired, expirationTime, start, stop } =
// 删除打卡图片
const clearImage = () => {
baseUrl.value = "";
+ fileId.value = "";
};
// 浏览图片
@@ -436,6 +437,8 @@ const handleClick = async () => {
if (res) {
hintToast(`打卡成功`);
+ baseUrl.value = ""; //打卡成功需要把图片删除掉
+ fileId.value = "";
await getData();
start();
}
@@ -461,7 +464,7 @@ onMounted(() => {