From abbe9df806eefad566fde14f0444356fb1959b24 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 二月 2026 17:58:33 +0800
Subject: [PATCH] 自测完善
---
src/App.vue | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 55e4b37..092696f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -54,10 +54,26 @@
// 澶勭悊鎺ㄩ�佹秷鎭偣鍑讳簨浠�
const handlePushClick = msg => {
console.log("鐐瑰嚮鎺ㄩ�佹秷鎭�:", msg);
- uni.navigateTo({
- url: "/" + msg.payload,
- // url: "/pages/managementMeetings/sealManagement/index?applicationNum=5",
- });
+ try {
+ if (msg.payload.indexOf("/") === 0) {
+ uni.navigateTo({
+ url: msg.payload,
+ });
+ } else {
+ uni.navigateTo({
+ url: "/" + msg.payload,
+ });
+ }
+ } catch (error) {
+ uni.showToast({
+ title: "璺緞:" + msg.payload,
+ icon: "none",
+ });
+ uni.showToast({
+ title: "璺宠浆澶辫触:" + error.message,
+ icon: "none",
+ });
+ }
// 瑙f瀽骞跺鐞嗘帹閫佹秷鎭�...
};
--
Gitblit v1.9.3