From 552ec6b7d8ccc56c379da195fc6c9c74312b1070 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 22 五月 2026 17:57:46 +0800
Subject: [PATCH] OA部分查询条件变更
---
src/App.vue | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index bd95a27..d427b1e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -10,13 +10,14 @@
import { confirmMessage } from "@/api/login.js";
const showSplash = ref(true);
+
onMounted(() => {
setTimeout(() => {
showSplash.value = false;
}, 5000);
- // 鍒濆鍖栨帹閫佹湇鍔�
- initPushService();
+ // 鍒濆鍖栨帹閫佹湇鍔�,鏆傛椂娉ㄩ噴锛屽鎴烽渶瑕佹墦寮�
+ // initPushService();
});
// 鍒濆鍖栨帹閫佹湇鍔★紙uni-push 1.0锛�
const initPushService = () => {
@@ -57,7 +58,21 @@
console.log("鐐瑰嚮鎺ㄩ�佹秷鎭�:", msg);
console.log("瑙f瀽鍚�:", msg.payload.noticeId);
try {
- confirmMessage(msg.payload.noticeId, 1).then(res => {
+ if (msg.payload.needMarkRead) {
+ 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,
+ });
+ }
+ }
+ });
+ } else {
if (msg.payload.url) {
if (msg.payload.url.indexOf("/") === 0) {
uni.navigateTo({
@@ -69,7 +84,7 @@
});
}
}
- });
+ }
} catch (error) {
uni.showToast({
title: "璺緞:" + msg.payload,
--
Gitblit v1.9.3