From fa403c58d2bea76a7131ea9dbb1d60247ea9ca77 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 30 四月 2026 09:43:25 +0800
Subject: [PATCH] 生产计划和生产订单模块开发(仅查看)
---
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