From a2fb35f6e7a161f080734acbc18ebca337692148 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 11 二月 2026 14:23:51 +0800
Subject: [PATCH] 打卡添加防抖
---
src/App.vue | 29 ++++++++++++++++++++++++++---
1 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 9023f62..bd95a27 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -7,6 +7,7 @@
<script setup>
import { ref, onMounted } from "vue";
import Splash from "./components/Splash.vue";
+ import { confirmMessage } from "@/api/login.js";
const showSplash = ref(true);
onMounted(() => {
@@ -54,9 +55,31 @@
// 澶勭悊鎺ㄩ�佹秷鎭偣鍑讳簨浠�
const handlePushClick = msg => {
console.log("鐐瑰嚮鎺ㄩ�佹秷鎭�:", msg);
- uni.navigateTo({
- url: msg.payload.pagePath,
- });
+ console.log("瑙f瀽鍚�:", msg.payload.noticeId);
+ try {
+ confirmMessage(msg.payload.noticeId, 1).then(res => {
+ if (msg.payload.url) {
+ if (msg.payload.url.indexOf("/") === 0) {
+ uni.navigateTo({
+ url: msg.payload.url,
+ });
+ } else {
+ uni.navigateTo({
+ url: "/" + msg.payload.url,
+ });
+ }
+ }
+ });
+ } catch (error) {
+ uni.showToast({
+ title: "璺緞:" + msg.payload,
+ icon: "none",
+ });
+ uni.showToast({
+ title: "璺宠浆澶辫触:" + error.message,
+ icon: "none",
+ });
+ }
// 瑙f瀽骞跺鐞嗘帹閫佹秷鎭�...
};
--
Gitblit v1.9.3