From 47db89eb73515ea71a8391af9a710eb9acbb6e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=A4=AA=E9=98=B3?= <5388403+zhaotaiyang@user.noreply.gitee.com> Date: Mon, 6 Apr 2026 19:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BA=86=E8=A7=86=E9=A2=91=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=9C=8B=E8=BF=9C=E7=A8=8B=E6=88=91=E7=94=B5=E8=84=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 8 +++++++- nativeplugins/ry-ipc-video/package.json | 0 package_a/monitor/monitor.nvue | 12 +++++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) mode change 100644 => 100755 nativeplugins/ry-ipc-video/package.json diff --git a/manifest.json b/manifest.json index 529278f..9f7892a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "海驰24", - "appid" : "__UNI__7302921", + "appid" : "__UNI__F8B45C3", "description" : "111", "versionName" : "1.2.6", "versionCode" : 106, @@ -62,6 +62,12 @@ "parameters" : {} } } + }, + "optimization" : { + "subPackages" : true, + "treeShaking" : { + "enable" : false + } } }, "quickapp" : {}, diff --git a/nativeplugins/ry-ipc-video/package.json b/nativeplugins/ry-ipc-video/package.json old mode 100644 new mode 100755 diff --git a/package_a/monitor/monitor.nvue b/package_a/monitor/monitor.nvue index 0e95052..7c58133 100644 --- a/package_a/monitor/monitor.nvue +++ b/package_a/monitor/monitor.nvue @@ -142,7 +142,17 @@ // 在 nvue 中调用组件的方法,有时可能需要通过 evalJS,但绝大多数情况可以直接调 if (typeof this.$refs.ipcVideo.start === 'function') { - this.$refs.ipcVideo.start(); + try{ + this.$refs.ipcVideo.start(); + } + catch(err){ + console.error("this.$refs.ipcVideo.start时发生前端异常:", err); + uni.showModal({ + title: '前端回调解析异常', + content: err.toString(), + showCancel: false + }); + } } else { console.error('start 方法不存在,可能插件注册失败或版本未生效'); uni.showToast({ title: '插件方法未找到', icon: 'none' });