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' });